1.1.2 • Published 6 years ago

easy-glob v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Build Status

easy-glob

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

Usage

Node

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

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

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

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago