1.0.3 • Published 6 years ago

nitm v1.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

nitm

Node in the middle. Intercept calls to the node binary and set some node specific flags before running a program

npm install nitm

build status Build status

Useful if you need to profile another application but don't know when it is invoking node itself.

Tested on Mac, Linux, and Windows

Usage

var nitm = require('nitm')

// set --no-warnings to node when tape invokes it.
nitm(['--no-warnings'], ['tape', 'test/*.js'], {stdio: 'inherit'})

API

var proc = nitm(flags, command, [options])

Run a command but intercept calls to node and set the specified flags. Returns a child process instance. Options are forwarded to childProcess.spawn.

CLI

There is a cli available as well

npm i -g nitm
# flags before -- and your program after
nitm --no-warnings -- tape test/*.js

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago