How to Install mitm NPM Packages on Ubuntu / Debian

How to Install mitm software package in NPM Packages

mitm : Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.. You can installing mitm npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install mitm
$ sudo npm install -g mitm

If want to update the mitm package execute the command as below,

$ sudo npm update mitm

Update package globally,

$ npm install -g mitm

Git clone:

$ sudo  git clone https://github.com/rektide/mitm.git
$ sudo  npm install -g ./mitm

mitm@1.3.3 /usr/lib/node_modules/mitm

How to remove mitm package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall mitm

Basic Information of mitm NPM Package:

Package Name mitm
Version 1.3.3
Description Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.
Released Date 2017-09-16T19:04:23.356Z
Published by moll
How to Learn https://www.npmjs.com/package/mitm/tutorial