]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/read-installed/README.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / read-installed / README.md
1 # read-installed
2
3 Read all the installed packages in a folder, and return a tree
4 structure with all the data.
5
6 npm uses this.
7
8 ## 2.0.0
9
10 Breaking changes in `2.0.0`:
11
12 The 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
21 var readInstalled = require("read-installed")
22 // optional options
23 var options = { dev: false, log: fn, depth: 2 }
24 readInstalled(folder, options, function (er, data) {
25   ...
26 })
27 ```