|
|
||||
|---|---|---|---|---|
| .. | ||||
| index.js | 11e3a9652a | 7 jaren geleden | ||
| license | 11e3a9652a | 7 jaren geleden | ||
| package.json | 11e3a9652a | 7 jaren geleden | ||
| readme.md | 11e3a9652a | 7 jaren geleden | ||
Load module from string in Node.
$ npm install --save require-from-string
var requireFromString = require('require-from-string');
requireFromString('module.exports = 1');
//=> 1
Required
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 appendPath, but paths will be prepended.
MIT © Vsevolod Strukchinsky