node package manager


// nappy

nappy queries the latest node.js api docs from the command line.


$ npm install -g nappy

basic usage

$ nappy fs.readFile

command-line options

   $ nappy [options] <command> <thing to lookup>
  -c, --coffee      Output code blocks as coffeescript.                               [boolean]  [default: false]
  -w, --wipe-cache  Wipe the locally-cached version of the API docs and re-download.  [boolean]  [default: false]
  -d, --debug       Display debug output.                                             [boolean]  [default: false]


function (aliases: f, func, m, method)

displays documentation for a single function.

ex: $ nappy f fs.readFile

class (aliases: c)

displays documentation for a class.

ex: $ nappy c child_process.ChildProcess

ls (aliases: l, list)

lists the functions and classes exported by a module.

ex: $ nappy ls util

how to specify the 'thing to lookup'

for the ls command, simply specify the module name you'd like to see the contents of.

for function and class, you must specify <module>.<thing> (i.e. fs.readFile, etc.)

nappy caches the api docs for offline viewing

good for coding on airplanes if you don't have $5 to blow on airtran wi-fi. if you need to clear the cache, just pass the -w flag. but don't do it while you're offline or you'll bust the cache and refill it with a vast nothingness.

nappy -w util.inspect


  • customizable color schemes

authors / contributors

bryn austin bellomy < >

license (wtfpl v2)

Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <>
Everyone is permitted to copy and distribute verbatim or modified 
copies of this license document, and changing it is allowed as long 
as the name is changed.