Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
persist a node repl's history
JavaScript
Branch: master

Merge pull request #5 from eush77/fix/history-command

Remove extra dot from .history command
latest commit 9741368ba3
@eush77 eush77 authored

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

Something went wrong with that request. Please try again.