Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multi-glob

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-glob

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

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

.. default-domain:: js .. highlight:: javascript

========== multi-glob

Glob all the patterns!

.. raw:: html

<a href="http://travis-ci.org/busterjs/multi-glob" class="travis">
  <img src="https://secure.travis-ci.org/busterjs/multi-glob.png">
</a>

multi-glob is a small wrapper around node-glob <https://github.com/isaacs/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("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 <https://github.com/isaacs/node-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.

FAQs

Package last updated on 26 Nov 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc