1.0.1 • Published 7 years ago
require-remote v1.0.1
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 |