pinf-for-nodejs

Status: DEV

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.

npm install pinf-for-nodejs

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!");
        }
    });
});
make test

License

UNLICENSE