package
Require module from string
npm install require-from-stringGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Load module from string in Node.
$ npm install --save require-from-stringvar requireFromString = require('require-from-string');
requireFromString('module.exports = 1');
//=> 1Required
Type: string
Module code.
Type: string
Default: ''
Optional filename.
Type: object
Type: Array
List of paths, that will be appended to module paths. Useful, when you want
to be able require modules from these paths.
Type: Array
Same as appendPaths, but paths will be prepended.
MIT © Vsevolod Strukchinsky
Estimated unpacked size across 1 packages.
3.3 kB
Includes dependencies.