@digitalbranch/glob
v1.1.0
Published
simple glob utility voor nodejs
Readme
Glob for nodejs
Simple sync glob utility for nodejs.
Supports globbing for ** and *
Usage
Install with npm
npm i @digitalbranch/globvar 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 matchedoptions{Object}return[ filePath: String ]
Performs a synchronous glob search.
Options
cwdThe current working directory in which to search. Defaults toprocess.cwd().ignoreAn array of globs to ignore.
