node/deps/npm/node_modules/read-installed
isaacs 218f08dbde npm: Upgrade to 1.1.63 2012-10-11 14:11:38 -07:00
..
test npm: upgrade to 1.1.41 2012-07-13 12:08:17 -07:00
LICENSE npm: Upgrade to 1.1.63 2012-10-11 14:11:38 -07:00
README.md Upgrade npm to 1.1.26 2012-06-15 10:00:30 -07:00
package.json npm: Upgrade to 1.1.63 2012-10-11 14:11:38 -07:00
read-installed.js npm: Upgrade to 1.1.55 2012-08-21 15:29:37 -07:00

README.md

read-installed

Read all the installed packages in a folder, and return a tree structure with all the data.

npm uses this.

Usage

var readInstalled = require("read-installed")
// depth is optional, defaults to Infinity
readInstalled(folder, depth, function (er, data) {
  ...
})