require-from-url

3.1.3 • Public • Published

require-from-url

Load module from URL in Node.

Install

$ npm install require-from-url

Usage

var requireFromUrl = require('require-from-url/sync');
var HelloWorld = requireFromUrl("https://nodeway.org/HelloWorld.js");
var api = new HelloWorld;
api.on('data', console.log);

License

MIT © May xiaoya zhang

Package Sidebar

Install

npm i require-from-url

Weekly Downloads

10,690

Version

3.1.3

License

MIT

Unpacked Size

4.77 kB

Total Files

11

Last publish

Collaborators

  • may