Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@demurgos
Created August 16, 2018 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demurgos/09f510e653c6fc661e801767582bf56b to your computer and use it in GitHub Desktop.
Save demurgos/09f510e653c6fc661e801767582bf56b to your computer and use it in GitHub Desktop.
{
"/main.js": {
"path": "/main.js",
"statementMap": {
"s0": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
},
"s1": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
},
"s2": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 30
}
},
"s3": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 35
}
}
},
"s": {
"s0": 1,
"s1": 1,
"s2": 1,
"s3": 1
},
"fnMap": {
"f0": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 10,
"column": 1
}
},
"f1": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 6,
"column": 1
}
}
},
"f": {
"f0": 1,
"f1": 1
},
"branchMap": {},
"b": {}
}
}
const Bluebird = require("bluebird");
const fs = require("fs");
readTextFileAsync = Bluebird.promisify(function (params, cb) {
fs.readFile(params, "UTF-8", cb);
});
readTextFileAsync("./main.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment