node-mocks-http : Mock http objects for testing Express routing functions. You can installing node-mocks-http 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 node-mocks-http $ sudo npm install -g node-mocks-http
If want to update the node-mocks-http package execute the command as below,
$ sudo npm update node-mocks-http
Update package globally,
$ npm install -g node-mocks-http
$ sudo git clone https://github.com/rektide/node-mocks-http.git
$ sudo npm install -g ./node-mocks-http
node-mocks-http@1.6.6 /usr/lib/node_modules/node-mocks-http
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall node-mocks-http
Package Name | node-mocks-http |
Version | 1.6.6 |
Description | Mock http objects for testing Express routing functions |
Released Date | 2017-10-12T05:39:41.267Z |
Published by | howardabrams |
How to Learn | https://www.npmjs.com/package/node-mocks-http/tutorial |