Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 657 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 657 Bytes

runtime-module-loader

Node.js compatible module loader for runtime.js

Build Status

Features:

  • Node.js module resolution algorithm
  • package.json runtime field to be able to override entry point for runtime.js, similar to browser field
  • runtime.js can't handle native *.node modules, throws an error for those

USAGE

var Loader = require('runtime-module-loader');
var loader = new Loader(fileExistsFunction, readFileFunction, runScriptFunction);
loader.require('./index');

##LICENSE

Apache License, Version 2.0