10.0.4 • Published 2 years ago

find-packages v10.0.4

Weekly downloads
4,370
License
MIT
Repository
-
Last release
2 years ago

find-packages

Find all packages inside a directory

npm version

Installation

<npm|yarn|pnpm> add find-packages

Usage

const path = require('path')
const findPkgs = require('find-packages')

findPkgs(path.join(__dirname, 'test', 'fixture'))
  .then(pkgs => console.log(pkgs))
  .catch(err => console.error(err))
  //> [ { path: '/home/zkochan/src/find-packages/test/fixture/pkg',
  //      manifest: { name: 'foo', version: '1.0.0' },
  //      writeProjectManifest: [AsyncFunction] } ]

API

findPackages(dir, [opts])

dir

The directory in which to search for packages.

opts

Parameters normally passed to glob

opts.patterns

Array of globs to use as package locations. For example: ['packages/**', 'utils/**'].

opts.ignore

Patterns to ignore when searching for packages. By default: **/node_modules/**, **/bower_components/**, **/test/**, **/tests/**.

License

MIT © Zoltan Kochan

10.0.0

2 years ago

10.0.1

2 years ago

10.0.2

2 years ago

10.0.3

2 years ago

10.0.4

2 years ago

9.0.13

2 years ago

9.0.12

2 years ago

9.0.11

2 years ago

9.0.10

2 years ago

9.0.9

2 years ago

9.0.8

2 years ago

9.0.7

2 years ago

9.0.6

2 years ago

9.0.5

2 years ago

9.0.4

2 years ago

9.0.3

2 years ago

8.0.14

2 years ago

9.0.2

3 years ago

9.0.1

3 years ago

8.0.13

3 years ago

9.0.0

3 years ago

8.0.9

3 years ago

8.0.8

3 years ago

8.0.10

3 years ago

8.0.12

3 years ago

8.0.11

3 years ago

8.0.7

3 years ago

8.0.6

3 years ago

8.0.5

3 years ago

8.0.4

3 years ago

8.0.3

3 years ago

8.0.1

4 years ago

8.0.2

4 years ago

8.0.0

4 years ago

7.0.24

4 years ago

7.0.23

4 years ago

7.0.22

4 years ago

7.0.21

4 years ago

7.0.20

4 years ago

7.0.19

4 years ago

7.0.18

4 years ago

7.0.17

4 years ago

7.0.16

4 years ago

7.0.15

4 years ago

7.0.13

4 years ago

7.0.14

4 years ago

7.0.12

4 years ago

7.0.11

4 years ago

7.0.10

4 years ago

7.0.9

4 years ago

7.0.8

5 years ago

7.0.8-alpha.0

5 years ago

7.0.7

5 years ago

7.0.6

5 years ago

7.0.5

5 years ago

7.0.4

5 years ago

7.0.3

5 years ago

7.0.2

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.1.0

5 years ago

5.0.10

5 years ago

5.0.9

5 years ago

5.0.8

5 years ago

5.0.7

5 years ago

5.0.6

5 years ago

5.0.5

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.2.0

7 years ago

2.1.2

7 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.0.0

8 years ago