git-lens
Opened this issue · 0 comments
chun-wang commented
console.log('hello');
import * as fs from 'fs';
const data = fs.readFileSync('data.txt','utf8');
console.log(data);
const remoteRefs = data.split('\n');
console.log(remoteRefs);
let myMap = new Map();
remoteRefs.forEach(function (value) {
const ref = value.trim().split(/\s+/);
if (ref.length != 2) {
return;
}
myMap.set(ref[0], ref[1]);
console.log(ref);
});
console.log(myMap);
console.log(myMap.get('42b359a4972275123aa0dd3920d69a95db4ed68f'));