@digitalbranch/glob

1.1.0 • Public • Published

Glob for nodejs

Simple sync glob utility for nodejs.

Supports globbing for ** and *

Usage

Install with npm

npm i @digitalbranch/glob
var glob = require("@digitalbranch/glob")

// options is optional
// Returns an array of matches: [
//    filePath: String
//]
glob("**/*.js", options)

glob(pattern, [options])

  • pattern {String} Pattern to be matched
  • options {Object}
  • return [ filePath: String ]

Performs a synchronous glob search.

Options

  • cwd The current working directory in which to search. Defaults to process.cwd().
  • ignore An array of globs to ignore.

Readme

Keywords

Package Sidebar

Install

npm i @digitalbranch/glob

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.2 kB

Total Files

5

Last publish

Collaborators

  • vincentcorbee