Package Exports
- requires
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (requires) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
requires
Super simple require parser, trades correctness for speed. If you do weird things like concat strings for require()s this will fail.
Installation
$ npm install requiresExample
js:
var a = require('./a.js');
var b = require('./something/here/whoop');
var c = require("something");parser output:
[
{
"string": "require('./a.js')",
"path": "./a.js",
"index": 9
},
{
"string": "require('./something/here/whoop')",
"path": "./something/here/whoop",
"index": 36
},
{
"string": "require(\"something\")",
"path": "something",
"index": 79
}
]License
MIT