An open API service indexing awesome lists of open source software.

https://github.com/matheus1lva/find-all-package-files


https://github.com/matheus1lva/find-all-package-files

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

        

# find-all-package-files
This scans all folders recursively (excluding node_modules) and outputs an array containing the location of all `package.json` files.

This is a dependency free, 20 lines module!

# Installation

```sh
$ npm install find-all-package-files
```

# Usage

```js
const findAllPackages = require('find-all-package-files');
const files = findAllPackages();
```

This is going to use the current directory as the main root, if you want to start from any other place, just pass it to the function.

```js
const findAllPackages = require('find-all-package-files');
const files = findAllPackages('./test/');
```