https://github.com/rmariuzzo/fuf
🔍 fuf – Find Unused Files in a directory.
https://github.com/rmariuzzo/fuf
cli files find grep unused
Last synced: over 1 year ago
JSON representation
🔍 fuf – Find Unused Files in a directory.
- Host: GitHub
- URL: https://github.com/rmariuzzo/fuf
- Owner: rmariuzzo
- License: mit
- Created: 2018-09-15T21:15:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T16:25:03.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T07:10:42.192Z (over 1 year ago)
- Topics: cli, files, find, grep, unused
- Language: JavaScript
- Homepage: https://github.com/rmariuzzo/fuf
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Installation
```bash
npm install fuf
```
# Usage
```js
import fuf from 'fuf'
fuf('target/directory', 'files/directory/**.*')
.then(results => {
console.log(results.unused)
console.log(results.used)
})
```
# How it works?
1. **`fuf`** find filenames that will be tested for usage.
2. **`fuf`** find the usage of those filenames in files from a target directory.
3. **`fuf`** output a list of unused files and a list of used files.
# Development
1. Clone and fork this repo.
2. Install dependencies: `npm install`.
3. Do your stuff.
4. [Run tests](#test).
5. Prepare a pull request.
## Releases
1. `npm install --global np`
2. `np`
Made with :heart: by [Rubens Mariuzzo](https://github.com/rmariuzzo).
[MIT license](LICENSE)