syntax-error
syntax-error copied to clipboard
detect and report syntax errors in source code strings
Results
3
syntax-error issues
Sort by
recently updated
recently updated
newest added
main.js ``` var some = {}; module.exports = some; a ``` errorCheck.js ``` var file = require("path").join("main.js"); var src = require("fs").readFileSync(file); var ec = check(src, file); if(ec) return { ......
``` > require('syntax-error')('})({') undefined ```
``` > require('syntax-error')('return') undefined ```