
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@andfaulkner/repl.history
Advanced tools
Persist a node repl's history to a file (now working with node v16+).
install: npm install repl.history
const os = require('os');
const path = require('path');
const historyFile = path.join(os.homedir(), '.node_history');
const repl = require('repl').start('> ');
require('repl.history')(repl, historyFile);
this will drop a .node_history
file in your home directory.
install: npm install -g @andfaulkner/repl.history
run repl.history
on the command line
A file ~/.node_history
will be created.
I like to alias it to nr
for node repl. To do this, add the following to your ~/.bashrc
file:
alias nr="repl.history"
FAQs
Add history to node's repl (working with node 16+)
We found that @andfaulkner/repl.history 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.