
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
dev-echo-server
Advanced tools
Simple echo server for development purposes.
Mainly developed to help with the testing of:
Supports:
npm i -g dev-echo-server
# generate certificate and key
openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout key.pem -out cert.pem
export PATH_CERT=cert.pem
export PATH_KEY=key.pem
dev-echo-server
Port | Protocol | Environment Variable |
---|---|---|
7001 | HTTP | PORT_HTTP |
7002 | HTTPS | PORT_HTTPS |
7003 | HTTP/2 h2c | PORT_HTTP2_H2C |
7004 | HTTP/2 | PORT_HTTP2 |
x-add-headers
Header can be used to add additional headers to the response. Value should be a JSON object.
Example:
curl http://localhost:7001 \
-H 'x-add-headers: {"test": "test"}'
# HTTP
curl http://localhost:7001/\?a\=b
# HTTPS
curl https://localhost:7002/\?a\=b -k
# HTTP/2 h2c
# Upgrade for h2c is not supported by node thus `--http2-prior-knowledge` should be used
curl --http2-prior-knowledge http://localhost:7003/\?a\=b
# HTTP/2
curl --http2 https://localhost:7004/\?a\=b -k
npm i -g socket.io-cli
# expose env to trust self-signed certificate
export NODE_EXTRA_CA_CERTS=cert.pem
# HTTP
socketio http://localhost:7001
# HTTPS
socketio https://localhost:7002
# HTTP/2 h2c - NOT SUPPORTED
# HTTP/2
socketio https://localhost:7004
# Once connected just type <event> [args] and hit enter
FAQs
Echo server. For development purposes only.
The npm package dev-echo-server receives a total of 2 weekly downloads. As such, dev-echo-server popularity was classified as not popular.
We found that dev-echo-server 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.