node/deps/npm/node_modules/read-installed
isaacs 9d4362403c npm: upgrade to 1.1.41 2012-07-13 12:08:17 -07:00
..
test npm: upgrade to 1.1.41 2012-07-13 12:08:17 -07:00
README.md Upgrade npm to 1.1.26 2012-06-15 10:00:30 -07:00
package.json Upgrade npm to 1.1.26 2012-06-15 10:00:30 -07:00
read-installed.js Upgrade npm to 1.1.26 2012-06-15 10:00:30 -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) {
  ...
})