Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Echos is a simple echo server and client. More specifically, echos allows you to setup an echo server that will replay any text sent to it. Echos also comes with a client that allows you to send an echo request to a server, and it will print it back.
####Local
$ npm install echos
####Global
$ npm install -g echos
Usage: ./echos server -p,--port <port> -q,--quiet
Usage: ./echos-server -p,--port <port> -q,--quiet
Options:
-p, --port [default: 1024]
-q, --quiet [default: false]
Usage: ./echos client message -p,--port <port> -h,--host <host>
Usage: ./echos-client message -p,--port <port> -h,--host <host>
Options:
-p, --port [default: 1024]
-h, --host [default: "127.0.0.1"]
-t, --timestamp [default: false]
Running the server on port 1337
$ ./bin/echos server -p 1337
Run the client to connect to the server on port 1337
and send Hello World!
$ ./bin/echos client Hello World! -p 1337 -t
When the server receives an echo request from the client it will log out something like this:
Echo message received:
Hello World!
From address: 127.0.0.1
Time: Sat Jan 04 2014
After the client receives the echo response from the server it will log out something like this:
Hello World! time=7ms
var echos = require('echos');
echos.server.start({port: 1337, quiet: false, callback: function(data){}});
echos.client.echo('Hello World!', {port: 1337, timestamp: true, callback: function(data){}});
npm install
in the root of the repoWatch for file changes, run grunt from the root of the repo. This will lint and run tests.
$ grunt watch
$ npm test
FAQs
A simple echo server and client.
The npm package echos receives a total of 1 weekly downloads. As such, echos popularity was classified as not popular.
We found that echos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.