1.0.0 • Published 7 years ago
nodebro v1.0.0
nodebro
Run node commands directly from the command line. Call nodebro followed by a string of code to execute.
Installation
Use npm to install nodebro.
npm i nodebroOr install nodebro globally so you can run it from anywhere on your machine.
npm i -g nodebroDepending on where your gloabl node_modules dir is located, unix users may have to run
sudo npm i -g nodebroUseage
Simply call nodebro followed by a string of node code to execute.
Example:
nodebro "console.log(require('util').inspect({ foo: 'bar' }))"Because your code will be executed in your local node environment, you can use things like require or async/await depending on your node version.
1.0.0
7 years ago