npm.io
0.1.3 • Published 9 years ago

qrepl

Licence
MIT
Version
0.1.3
Deps
1
Vulns
0
Weekly
0

qrepl

Quick repl helper

npm install qrepl
qrepl = require 'qrepl'

history_name = 'test'

runLine = (line, cb) ->
    cb null, 'your line was ' + line

qrepl history_name, runLine
> hello
your line was hello

A history file will be saved as ~/.[history_name].qrepl

Keywords