persist a node repl's history
JavaScript
Latest commit c5d51c7 Jan 27, 2017 @tmpvar 0.1.4
Permalink
Failed to load latest commit information.
bin functional 0.1.0 release Nov 24, 2011
.gitignore functional 0.1.0 release Nov 24, 2011
LICENSE.txt add LICENSE.txt Aug 1, 2014
README.md functional 0.1.0 release Nov 24, 2011
index.js Prevent deprecation warning in node 7.4.0 Jan 20, 2017
package.json 0.1.4 Jan 27, 2017

README.md

repl.history

Persist a node repl's history to a file.

from node

install: npm install repl.history

var repl = require('repl').start('> ');
require('repl.history')(repl, process.env.HOME + '/.node_history');

this will drop a .node_history file in your home directory.

from the command line

install: npm install -g 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