MCPcopy
hub / github.com/jquery/esprima / readFile

Function readFile

test/check-version.js:29–32  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

27'use strict';
28
29function readFile(filename) {
30 var fs = require('fs');
31 return fs.readFileSync(filename, 'utf-8').split('\n');
32}
33
34function findCanonicalVersion() {
35 var matcher, lines, version;

Callers 4

runTokenizerTestsFunction · 0.85
findCanonicalVersionFunction · 0.85
ensureVersionFunction · 0.85
runParserTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…