
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A simple Telnet client.
$ npm install teletype --save
const teletype = require('teletype')
const client = teletype('localhost')
client.exec('?PWR', /PWR[01]/)
.then(response => {
console.log(response) // PWR0
})
Creates a Teletype client.
Type: String
The hostname or IP address of the host to connect to.
Type: Number
Default: 23
The port to connect to.
Type: Object
Type: Number or false
Default: false
The number of milliseconds before a call is considered to be timed out. This
applies to the initial connection, readUntil(), and exec() if called with
match. exec() without match and close() will never time out.
Sends a command to the host and reads incoming data until match is
encountered. If match is given, it returns a promise for a response string
which contains the first line where match was encountered.
Type: String
The command to send to the host.
Type: RegExp
The regular expression to match against incoming data. If omitted, Teletype won’t read any incoming data but will send the command to the host.
Reads incoming data from the host until match is encountered. Returns a
promise for a response string which contains the first line where match
was encountered.
Sends a FIN packet and destroys the socket.
If a required argument is missing, Teletype will reject a TypeError.
If a call times out, it will reject an error with the code ETIMEDOUT.
Any other error will be the same as emitted by
Node.js’s net.
Teletype is inspired by Ruby’s Net::Telnet
and Python’s telnetlib.
If you need something more advanced, take a look at
telnet-client.
Teletype itself is licensed under the ISC license. See LICENSE
for the full license.
FAQs
A simple Telnet client.
The npm package teletype receives a total of 24 weekly downloads. As such, teletype popularity was classified as not popular.
We found that teletype 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.