![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
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.
A simple TCP proxy using modern Node.js APIs and zero dependencies.
Requires Node.js v18.4.0 or higher.
tcpr --listen [HOST]:PORT --connect HOST:PORT
For example, to forward a VNC port from Tailscale to a virtual machine:
tcpr --listen 100.xx.xx.xx:5901 --connect 192.168.64.xx:5900
Every megabyte of data transferred is logged:
[2022-06-16T17:20:58.463Z] Server is listening on port 5901
[2022-06-16T17:21:13.367Z] Handling connection #1 from 100.xx.xx.xx
[2022-06-16T17:21:33.266Z] Connection #1: 1.04 MB <=> 0.00 MB
[2022-06-16T17:24:33.599Z] Connection #1: 2.00 MB <=> 0.00 MB
[2022-06-16T17:24:34.296Z] Connection #1: 3.03 MB <=> 0.00 MB
[2022-06-16T17:25:16.794Z] Connection #1: 3.99 MB <=> 0.01 MB
[2022-06-16T17:25:20.425Z] Connection #1: 5.02 MB <=> 0.02 MB
FAQs
TCP proxy using modern Node.js APIs and zero dependencies
The npm package tcpr receives a total of 1 weekly downloads. As such, tcpr popularity was classified as not popular.
We found that tcpr 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.