MCPcopy
hub / github.com/MithrilJS/mithril.js / parse

Function parse

bundler/bundle.js:13–16  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

11 try {return fs.statSync(filepath).isFile()} catch (e) {return false}
12}
13function parse(file) {
14 var json = read(file)
15 try {return JSON.parse(json)} catch (e) {throw new Error("invalid JSON: " + json)}
16}
17
18var error
19function run(input, output) {

Callers 2

resolveFunction · 0.85
runFunction · 0.85

Calls 1

readFunction · 0.70

Tested by

no test coverage detected