require-from-string
Install
$ npm install --save require-from-stringUsage
var requireFromString = require('require-from-string');
requireFromString('module.exports = 1');
//=> 1API
requireFromString(code, [filename], [options])
code
filename
options
License
Last updated