read-installed
Read all the installed packages in a folder, and return a tree structure with all the data.
Last updated 11 years ago by isaacs .
ISC · Repository · Bugs · Original npm
$ cnpm install read-installed 
SYNC missed versions from official npm registry.

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 Infinity
  • log optional log Function
  • dev 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) {
  ...
})

Current Tags

  • 4.0.3                                ...           latest (10 years ago)

2 Versions

  • 2.0.7                                ...           11 years ago
  • 4.0.3                                ...           10 years ago
Maintainers (3)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org