Notoriously Psychedelic Modules
Have ideas to improve npm?Join in the discussion! »

nodejs-echo

2.1.0 • Public • Published

NodeJS Echo - network debugging tool

Provides an easy way to monitor (for now only outgoing) requests from your nodejs application.

Installation

npm install nodejs-echo --save-dev

Usage

Simply import initial command from package and execute it in very beginning of your program.

const { start } = require('nodejs-echo');
 
start({ port: 3000, secret: 'any-string' });

Parameter secret is optional but highly recommended to use

Then just open in your browser localhost:3000.

It is recommended to place the above code in a separate file (e.g. echo.js) and to import it in your application's entry point (e.g. index.js).

require('./echo');
 
// your code...

Remember that tool also occupies next port for its needs. Eg. if you select port 3000, 3001 should also be available.

Install

npm i nodejs-echo

DownloadsWeekly Downloads

58

Version

2.1.0

License

ISC

Unpacked Size

3.73 MB

Total Files

19

Last publish

Collaborators

  • avatar