nodejs-tcp-ping
TCP Ping is a Node.JS based TCP ping utility written in Typescript
Getting Started
If you are using yarn (RECOMMENDED!)
yarn add nodejs-tcp-ping
If you are using npm
npm install nodejs-tcp-ping --save
Using with JavaScript
const nodejsTcpPing = ; // If you are not specify any options// then ping localhost:80 five times// with 5000ms timeoutnodejsTcpPing; // There is the full specification of optionsnodejsTcpPing;
Using with TypeScript
; tcpPing.then.catch; // Or tcpPing.then.catch;
Testing with yarn
1. Install all the dependencies with yarn
yarn
2. Build the lib with yarn
yarn build
3. Run all the tests with yarn
yarn test
Testing with npm
1. Install all the dependencies with npm
npm install
2. Build the lib with npm
npm run build
3. Run all the tests with npm
npm test