Created
August 16, 2018 18:17
-
-
Save demurgos/09f510e653c6fc661e801767582bf56b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/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": {} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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