pinf-for-nodejs
v0.6.1
Published
*Status: DEV*
Downloads
18
Readme
Status: DEV
PINF JavaScript Loader for NodeJS
A NodeJS module for loading PINF JavaScript Bundles.
Any portable bundle may be loaded. Modules and packages written for NodeJS may also be bundled and loaded.
Install
npm install pinf-for-nodejs
Usage
app.js
const PATH = require("path");
const PINF = require("pinf-for-nodejs");
PINF.sandbox(PATH.resolve("bundle.js"), function(sandbox) {
sandbox.main();
});
bundle.js
PINF.bundle("", function(require) {
require.memoize("/main.js", function(require, exports, module) {
exports.main = function(options) {
console.log("HelloWorld!");
}
});
});
Development
make test