2.0.2 • Published 6 years ago

require-from-string v2.0.2

Weekly downloads
6,829,870
License
MIT
Repository
github
Last release
6 years ago

require-from-string Build Status

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 appendPaths, but paths will be prepended.

License

MIT © Vsevolod Strukchinsky

ajv@pulumi/pulumi@hotfusion/typereasy-select-rn@devheat/wp-toolsfrontity-core-recodedsy-craftcloud-archive-s3codiac-ops-enterprisecd-svreact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112pulumi-test@launch/apphenesis-cli@ntt_app/react-native-custom-notificationgenerator-express-microservicereact-native-covid-sdkhexidave-aspnet-webpack@ruleenginejs/ruleengine-compileravrorajs@jttechnic/interpreterxrdc@saeon/ol-react@saeon/quick-formmysql-formatreact-native-printer-brothers@newhorizon-tech/dd-npm-package-templatereact-native-shekhar-bridge-testcogoportutilsuncoded-connect@reversodev/oceanic-fleetlevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-requicclibyarntesthtlengine-testinghyperpass-sdkplginthing-it-serverliteratiopea-bootstraapluminos-ui-coreserverlesssklif-ui-kitsklif-api@everything-registry/sub-chunk-2654jawwy-sdkjawwy_gamification_release@314oner_npm/universal-components-libraryreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgondp149-tablesklif-uireact-native-jawwy_sampleexpress-react-reduxextract-mdx-metadatafaasliftfcgenfawaterak-online-paymentfawatrak-online-paymentfake-httpfcrfcr2express-vue-rendererfhir2fixed_form_builderfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmslflubfreedcamp-script-runnerfrdrk-js-semaphorefunsee-hammerfscrfscriptsfrontful-configfrontful-environmentfrontitycorefrontitycore2frontitycore3front-end-engineeringfront-and-backeleventy-plugin-react-staticelvyenefti-galeri
2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago