🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

nitm

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nitm

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

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 10 Aug 2018

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