# easy-glob

> simple and easy to use glob with instant results using fast-glob as backend and is faster than node-glob

Latest version **1.1.2** (published 2018-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install easy-glob
pnpm add easy-glob
yarn add easy-glob
bun add easy-glob
```

Provides the commands `lg`, `glob`, `easy-glob`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2018-04-06 |
| First published | 2018-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=9.0.0 |
| Dependencies | 4 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sönke Kluth |
| Maintainers | soenkekluth |
| Keywords | glob, patterns, fast, easy, cli, implementation |

## Links

- npm: https://www.npmjs.com/package/easy-glob
- Repository: https://github.com/soenkekluth/easy-glob
- Homepage: https://github.com/soenkekluth/easy-glob#readme
- Issues: https://github.com/soenkekluth/easy-glob/issues
- npm.io page: https://npm.io/package/easy-glob

## Dependencies (4)

- [sade](https://npm.io/package/sade.md) ^1.4.0
- [glob-fs](https://npm.io/package/glob-fs.md) ^0.1.7
- [is-glob](https://npm.io/package/is-glob.md) ^4.0.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^2.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2018-04-06
- 1.1.1 — 2018-04-06
- 1.1.0 — 2018-03-31
- 1.0.0 — 2018-03-31
- 0.3.0 — 2018-03-31
- 0.2.1 — 2018-03-31
- 0.2.0 — 2018-03-31
- 0.1.1 — 2018-03-31

## README

[![Build Status](https://travis-ci.org/soenkekluth/easy-glob.svg?branch=master)](https://travis-ci.org/soenkekluth/easy-glob)

# easy-glob

simple and easy to use glob with instant results using fast-glob as backend and is faster than node-glob.

## Usage

### Node

```js
const glob = require('easy-glob');

// async / await
const res = await glob.read('./*.js');
console.log(res); // ['file1.js', 'file2.js']

// sync
const syncRes = glob.readSync('./*.js');
console.log(syncRes); // ['file1.js', 'file2.js']

// promise
glob.read('./*.js')
  .then(result => console.log(result)) // ['file1.js', 'file2.js']
```

### CLI

```bash
$ glob <pattern> [options]
$ glob read <pattern> [options]
$ glob readSync <pattern> [options]

# Examples
$ glob "./*"
$ glob "./**/*.js, src/"
```

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