multi-glob

Small wrapper around the glob module that allows globbing for multiple patterns at once

No longer maintained
Last updated 7 years ago by dominykas .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install multi-glob 
SYNC missed versions from official npm registry.

multi-glob

Build status

Glob all the patterns!

multi-glob is a small wrapper around node-glob that allows you to glob multiple patterns in one go, and optionally treat it as a failure if any one pattern matches no files.

If you just need to glob multiple patterns in one go, you can simply do:

var glob = require("multi-glob").glob;
glob(["all", "the", "patterns"], cb);

However, with multi-glob, you can do a "strict" glob, which will cause an error if e.g. the pattern "the" in the previous example matched no files.

API

multiGlob.glob(patterns[, options], callback);

Works like node-glob's glob, with the following two exceptions:

  • patterns may be either a string pattern or an array of string patterns
  • options may include strict. When set to true, glob will yield an error if either one of patterns matches no files.

Current Tags

  • 1.0.2                                ...           latest (7 years ago)

4 Versions

  • 1.0.2 [deprecated]           ...           7 years ago
  • 1.0.1 [deprecated]           ...           10 years ago
  • 1.0.0 [deprecated]           ...           10 years ago
  • 0.4.0 [deprecated]           ...           13 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |