Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"/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
You can’t perform that action at this time.