• Home
Name Date Size #Lines LOC

..--

test/12-May-2024-482423

.npmignoreD12-May-2024102 1411

.travis.ymlD12-May-2024189 109

LICENSED12-May-2024749 1712

README.mdD12-May-2024592 2819

package.jsonD12-May-20241.7 KiB6968

read-installed.jsD12-May-202411.4 KiB408241

README.md

1# read-installed
2
3Read all the installed packages in a folder, and return a tree
4structure with all the data.
5
6npm uses this.
7
8## 2.0.0
9
10Breaking changes in `2.0.0`:
11
12The second argument is now an `Object` that contains the following keys:
13
14 * `depth` optional, defaults to Infinity
15 * `log` optional log Function
16 * `dev` optional, default false, set to true to include devDependencies
17
18## Usage
19
20```javascript
21var readInstalled = require("read-installed")
22// optional options
23var options = { dev: false, log: fn, depth: 2 }
24readInstalled(folder, options, function (er, data) {
25  ...
26})
27```
28