Package Exports
- require-from-string
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 (require-from-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
require-from-string 
Load module from string in Node.
Install
$ npm install --save require-from-string
Usage
var requireFromString = require('require-from-string');
requireFromString('module.exports = 1');
//=> 1
API
requireFromString(code, [filename], [options])
code
Required
Type: string
Module code.
filename
Type: string
Default: ''
Optional filename.
options
Type: object
appendPaths
Type: Array
List of paths
, that will be appended to module paths
. Useful, when you want
to be able require modules from these paths.
prependPaths
Type: Array
Same as appendPath
, but paths will be prepended.
License
MIT © Vsevolod Strukchinsky