mirror of https://github.com/nodejs/node.git
75bc11cf12
* isaacs, Robert Kowalski, Benjamin Coe: Test Improvements * isaacs doc: Add canonical url * isaacs view: handle unpublished packages properly * Raynos (Jake Verbaten) do not log if silent * Julian Gruber fix no such property error * isaacs npmconf@0.1.14 * Thorsten Lorenz adding save-prefix configuration option * isaacs npm-registry-client@0.4.7 * isaacs cache: treat missing versions as a 404 * isaacs cache: Save shasum, write resolved/etc data to cache * isaacs cache: Always fetch root doc * isaacs cache: don't repack unnecessarily from tmp * Andrey Kislyuk Don't crash if shrinkwrap-dependencies were not passed in pkginfo * Robert Kowalski fix link in faq * Jean Lauliac Add a peerDependencies section in package.json doc * isaacs read-installed@2.0.2 |
||
---|---|---|
.. | ||
node_modules/util-extend | ||
test | ||
.npmignore | ||
LICENSE | ||
README.md | ||
package.json | ||
read-installed.js |
README.md
read-installed
Read all the installed packages in a folder, and return a tree structure with all the data.
npm uses this.
2.0.0
Breaking changes in 2.0.0
:
The second argument is now an Object
that contains the following keys:
depth
optional, defaults to Infinitylog
optional log Functiondev
optional, default false, set to true to include devDependencies
Usage
var readInstalled = require("read-installed")
// optional options
var options = { dev: false, log: fn, depth: 2 }
readInstalled(folder, options, function (er, data) {
...
})