New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

plumber-glob

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plumber-glob

File globbing operation for Plumber pipelines

latest
Source
npmnpm
Version
0.4.5
Version published
Maintainers
1
Created
Source

plumber-glob Build Status

File globbing operation for Plumber pipelines.

Example

var glob = require('plumber-glob');

module.exports = function(pipelines) {

    pipelines['compile'] = [
        glob('src/**/*.js'),
        // ... more pipeline operations
    ];

};

API

glob(patterns...) or glob.pattern(patterns...)

Returns resources for all files matched by the list of patterns.

Patterns may include wildcards like * or ** (globstar).

See the minimatch documentation for the full available syntax.

Example:

var allHtml = glob('**/*.html'); // or glob.pattern('**/*.html')

glob.exclude(patterns...)

Returns a new glob function that excludes files patched by the patterns.

Example:

var globUnlessMinimised = glob.exclude('**/*.min.js');
var js = globUnlessMinimised("src/**/*.js");

glob.within(directory)

Returns a new glob function scoped within the given directory.

Example:

var sources = glob.within('src');
var htmlAndCss = sources("index.html", "styles/*.css");

var scripts = sources.within('scripts');
var js = sources("**/*.js");

Keywords

build

FAQs

Package last updated on 29 Nov 2014

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