Skip to content

fibjs-modules/node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Still Work In Progress

@fibjs/node

NPM version build status appveyor build status Test coverage David deps Known Vulnerabilities npm download

Node.js runtime which works on fibjs platform. You should use this module only when you want to 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.

License

MIT

About

Node.js runtime which works on fibjs platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published