Socket
Book a DemoInstallSign in
Socket

@fibjs/node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fibjs/node

Node.js runtime which works on fibjs platform.

latest
Source
npmnpm
Version
1.0.0-beta.0
Version published
Maintainers
1
Created
Source

@fibjs/node

NPM version 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 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

Keywords

npm

FAQs

Package last updated on 26 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts