1.0.1 • Published 7 years ago

require-remote v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

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

MIT license

Author

me
© 2017 Pablo Varela