node/deps/npm/node_modules/read-installed
isaacs f5602bda18 npm: Upgrade to 1.3.2 2013-07-09 13:09:02 -07:00
..
test npm: Upgrade to 1.3.2 2013-07-09 13:09:02 -07:00
LICENSE npm: Upgrade to 1.1.63 2012-10-11 14:11:38 -07:00
README.md npm: Upgrade to 1.3.2 2013-07-09 13:09:02 -07:00
package.json npm: Upgrade to 1.3.2 2013-07-09 13:09:02 -07:00
read-installed.js npm: Upgrade to 1.3.2 2013-07-09 13:09:02 -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, logFunction, function (er, data) {
  ...
})