Socket
Socket
Sign inDemoInstall

load

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load

Load JavaScript files that do not use the bloat module patterns


Version published
Weekly downloads
798
increased by28.5%
Maintainers
1
Weekly downloads
 
Created
Source

load

Because fuck your module patterns, your module loader and other kinds of pointless codebloat that require me to use a damned JavaScript file on the server.

I named it load because it loads files, thats it.

var load = require('load');

// file.js contents:
//
// function test() { return 'test' };
//

// Only one global exported, automatically exposes the function by default.
var test = load('file.js');

// file2.js contents:
//
// function test() {}
// function test1() {}
//

var library = load('file2');
console.log(library.test);
console.log(library.test1);

// And that it.

License

MIT

Keywords

FAQs

Package last updated on 17 Mar 2013

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