mirror of https://github.com/nodejs/node.git
17 lines
304 B
Markdown
17 lines
304 B
Markdown
# read-installed
|
|
|
|
Read all the installed packages in a folder, and return a tree
|
|
structure with all the data.
|
|
|
|
npm uses this.
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
var readInstalled = require("read-installed")
|
|
// depth is optional, defaults to Infinity
|
|
readInstalled(folder, depth, function (er, data) {
|
|
...
|
|
})
|
|
```
|