
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
REPL over the network with autocomplete and color support. Both Server and Client
node.js REPL server/client over sockets that support autocomplete and colors.
npm install net-repl
Creating a server
var repl = require('net-repl');
var srv = repl.createServer(opts).listen('repl.sock');
Adding shortcut for connecting to repl on your application
opts
accepts all the options that are accepted by
repl.start
Add the following to your package.json
"scripts": {
"test": "jasmine-node spec",
"repl": "./node_modules/.bin/repl-client repl.sock"
}
To connect run
$ npm run repl
var repl = require('net-repl');
var options = {
prompt: 'foo> ', //optional set a custom prompt
deleteSocketOnStart: false //if you use UNIX socket and the application exits without running stop() the unix socket file will remain, this deletes the old socket file when you start the server.
}
var portOrPath = '/tmp/repl.sock';
//listen method
//@param {String|Number} listen port number or path to UNIX socket.
//@param {String} [host] if omitted, the server will accept connections directed to any IPv4 address if you supplied a port number.
var srv = repl.createServer(options).listen(portOrPath);
Usage: repl-client <port|domain socket path> <address if port specified>
Examples:
Unix domain socket
$ repl /tmp/repl.sock
Localhost on port
$ repl 1337
Specified host and port
$ repl 1337 localhost
npm install
FAQs
REPL over the network with autocomplete and color support. Both Server and Client
The npm package net-repl receives a total of 21 weekly downloads. As such, net-repl popularity was classified as not popular.
We found that net-repl 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.