easy-glob
simple and easy to use glob with instant results using fast-glob as backend and is faster than node-glob
Last updated 2 years ago by soenkekluth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install easy-glob 
SYNC missed versions from official npm registry.

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/"

Current Tags

  • 1.1.2                                ...           latest (2 years ago)

8 Versions

  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (4)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |