@fibjs/node
v1.0.0-beta.0
Published
Node.js runtime which works on fibjs platform.
Downloads
3
Readme
@fibjs/node
Node.js runtime which works on fibjs platform. you should use this module only when you want use some Node.js's module, please use fibjs native module first!
Install
$ npm i @fibjs/node --save
Usage
const node = require('@fibjs/node');
const mod1 = node('mod1');
const mod2 = node.require('mod2');
// or you can run a js file
node.run('./app.js'); // path to js file
Also, this module can be used as a cli. You can invoke like this:
$ ./node_modules/.bin/node app.js
API
node()
require a npm module.node.require()
require a npm module.node.run()
execute a Node.js js script file.
Questions & Suggestions
Please open an issue here.