read-installed

Read all the installed packages in a folder, and return a tree structure with all the data.

ISC 32 个版本
安装
npm install read-installed
yarn add read-installed
pnpm add read-installed
bun add read-installed
README

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) {
  ...
})
版本列表
4.0.3 2015-09-10
4.0.2 2015-07-17
4.0.1 2015-06-25
4.0.0 2015-04-07
3.1.5 2014-12-22
3.1.4 2014-12-19
3.1.3 2014-09-11
3.1.2 2014-09-08
3.1.1 2014-08-29
3.1.0 2014-08-12
3.0.0 2014-07-31
2.0.7 2014-07-23
2.0.6 2014-07-21
2.0.5 2014-06-06
2.0.4 2014-05-22
2.0.3 2014-04-25
2.0.2 2014-03-27
2.0.1 2014-03-19
2.0.0 2014-03-15
1.0.1 2014-03-12
1.0.0 2014-02-15
0.2.5 2013-11-26
0.2.4 2013-08-19
0.2.3 2013-07-22
0.2.2 2013-06-20
0.2.1 2013-06-20
0.1.1 2013-02-06
0.1.0 2013-01-18
0.0.4 2012-12-15
0.0.3 2012-10-02
0.0.2 2012-08-18
0.0.1 2012-06-11