mirror of
https://github.com/zhigang1992/npm.git
synced 2026-05-17 17:37:48 +08:00
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) {
...
})