simple-loader

0.0.8 • Public • Published

Load javascript file into context

it can be used as a javascript include, because sometimes my files get bigger and i don't want to code in module exports just to split them.

usage

var include=require("simple-loader")(global);
include("test/resources/included.js");

this differs from require as the included script can modify local environment. so, use it just to split your own long files.

simple-loader injects console and require to the included script.

Package Sidebar

Install

npm i simple-loader

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • neu-rah