Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

require-url

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-url

Require a file from a url

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

require-url

Require a node module from a url.

"One of the stupidest things I've ever made." - Ryan Seys, 2014

Install

npm install require-url

Usage

var require_url = require('require-url');
var url = 'https://gist.githubusercontent.com/ryanseys/b81ead1d499ed5e94b29/raw/hello.js';

require_url(url, function(err, mod) {
  if(err) throw err;
  mod(); // 'hello from a github gist'
});

Contributing

I wouldn't bother if I were you. But if you really want to, send a PR / issue.

License

MIT

FAQs

Package last updated on 03 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc