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