# findy

> Find files really easily.

Latest version **1.2.0** (published 2017-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install findy
pnpm add findy
yarn add findy
bun add findy
```

Provides the command `findy`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-07-06 |
| First published | 2017-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | f1lt3r |
| Maintainers | f1lt3r |

## Links

- npm: https://www.npmjs.com/package/findy
- Repository: https://github.com/f1lt3r/findy
- Homepage: https://github.com/f1lt3r/findy#readme
- Issues: https://github.com/f1lt3r/findy/issues
- npm.io page: https://npm.io/package/findy

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [cfonts](https://npm.io/package/cfonts.md) ^1.1.3
- [moment](https://npm.io/package/moment.md) ^2.18.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [micromatch](https://npm.io/package/micromatch.md) ^3.0.3

## Recent versions

- 1.2.0 (latest) — 2017-07-06
- 1.1.0 — 2017-06-28
- 1.0.1 — 2017-06-28

## README

# Findy!

The handy little cli utility for finding lost files by name.

![[Findy Example Output](img/findy-example-output.png)](img/findy-example-output.png)

- [x] Find in subdirectories
- [x] Regex filepath pattern matching
- [x] Clickable file links from CLI
- [x] Files listed by modified date _(newest last)_
- [x] Auto-Ignore `node_modules` and `.git` dirs
- [x] Friendly date-time output

See Findy in action: [Youtube](http://www.youtube.com/watch?v=bAXpDzsq32g)

_**Sidenote:** To find files by contents, forget grep, use [ack](https://beyondgrep.com/)_

## Installation

```shell
yarn install findy -g
```

## Search Examples

### Find All Local

Find all files in the current directory containing the word `yarn` anywhere in the name:

```shell
findy '*yarn*'
```

### Find By Extension

Find all `.env` and `.log` files in the current directory:

```shell
findy '*.env' '*.log'
```

### Find Recursive

Find all `.env` files recursively:

```shell
findy '**/*.env'
```

### Negation

**Important:** negation requires the use of single-quotes around the search phrase, unless used in an array (see: negative in array).

Find all Markdown files recursively, that are **not** named `README.md`:

```shell
findy '**/*.md' '!**/README.md'
```

### Searching with Sudo

Searching through some files and directories may require elevated permission. Where you see: 'Unhandled rejection Error: EACCES: permission denied', you can use `sudo`.

Seach for files with elevated permission:

```shell
sudo findy '**/*.md'
```

### Current Dir

**Important:** Findy will still search recursively, but will only show results that match the current directory.

Find any `README.md` file in the current directory:

```shell
findy 'README.md'
```

### Containing Word Recursive

To recusively find any `.txt` file containing the the word `notes`:

```shell
findy '**/*notes*.txt'
```

### Starting with word

To recusrively find any file starting with the the word `notes`:

```shell
findy '**/notes*'
```

### Ending with word

To recusrively find any file ending with the the word `notes`:

```shell
findy '**/*notes.*'
```

### Find This-or-That

To find a Markdown file containing either `notes` or `tasks`:

```shell
findy '**/*{notes,tasks}*.md'
```

### Negative In Array

To find a anything in the current directory, with `foo` but **not** `bar`:

```shell
findy '*{foo,!bar}*'
```

---
_Source: https://npm.io/package/findy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
