require-precompiled
Require extension that allows for caching/precompiling
Install
$ npm install --save require-precompiled
Usage
const installPrecompiler = ;const cache = ; ; // Any module required from this point on will be checked against the cache.const foo = ;
API
requirePrecompiled(callback)
callback
Type: Function(string: filename)
Return string
contents for a cache hit, or null
for a miss.
License
MIT © James Talmage