Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
/ node.tools.repl Public archive

**No longer maintained** Helpful utilities for working in the repl

Notifications You must be signed in to change notification settings

danmidwood/node.tools.repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tools for the Node REPL

Having a REPL is cool, but it's better when you can do something useful with it.

tools.repl provides doc and source functions for helpful inspection of your [Function] objects.

Install

Add this to your package.json,

"devDependencies": {
  "tools.repl": ">=0.0.1"
}

Usage

NODE> var tr = require('tools.repl');
NODE> tr
{ doc: [Function], source: [Function] }
NODE> tr.doc(require)
[ 'id', 'options' ]
NODE> tr.source(require)
'function (id, options) {\n    // Remove module from cache if reload is requested.\n    if (options && options.reload)\n      delete require.cache[require.resolve(id)];\n    return require(id);\n  }'

License

Copyright © 2014 Dan Midwood

Blatantly inspired by Clojure's clojure.repl

Distributed under the ISC License.

About

**No longer maintained** Helpful utilities for working in the repl

Resources

Stars

Watchers

Forks

Packages