Skip to content

pablopunk/import-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import-url

Require modules from any URL

Install

npm install import-url

Usage

const foo = await require('import-url')('module.now.sh')
console.log(foo()) //=> 'awesome!'

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

Related

This module used to be named require-remote and still still available on npm.

Author

me
© 2017 Pablo Varela