https://github.com/matheus1lva/find-all-package-files
https://github.com/matheus1lva/find-all-package-files
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheus1lva/find-all-package-files
- Owner: matheus1lva
- Created: 2019-12-11T13:35:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T16:12:09.000Z (over 5 years ago)
- Last Synced: 2025-01-02T02:08:54.750Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/');
```