node/deps/npm/node_modules/read-installed
isaacs 5aef65a98a npm: Upgrade to v1.2.10 2013-02-06 08:39:31 -08: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 v1.2.10 2013-02-06 08:39:31 -08:00
read-installed.js npm: Upgrade to v1.2.10 2013-02-06 08:39:31 -08: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) {
  ...
})