require-remote
v1.0.1
Published
Require modules from any URL
Downloads
13
Readme
require-remote
Install
npm install require-remote
Usage
const foo = await require('require-remote')('http://module.com')
console.log(typeof foo) //=> 'function'
Right now it doesn't support modules requiring other modules. So if your remote module does a require()
it will fail.
Contribute
Feel free to open an issue or a PR.
License
Author
| | | ----------------------------------------------------------------------------- | | © 2017 Pablo Varela |