🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

utils-glob

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-glob

Mid-level file globbing utilities for Grunt.js and node.js projects.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

utils-glob NPM version

"Mid-level" globbing utilities

Quickstart

npm i utils-glob --save

Methods

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

glob.content(patterns, sep) {
glob.filepath(patterns, sep) {
glob.filename(patterns, sep) {
glob.basename(patterns, sep) {

Usage

Example usage in an Underscore or Lo-Dash mixin:

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

grunt.util._.mixin({
  include: function (filepath) {
    return glob.content(filepath);
  }
});

Use the mixin:

_.include("docs/*.md");

Or in templates:

<%= _.include("docs/*.md") %>

Returns the concatenated content of all files in the docs/ directory with the .md extension.

Author

License

Copyright (c) 2013 Jon Schlinkert Licensed under the MIT license.

Project created by Jon Schlinkert.

This file was generated on Wed Sep 18 2013 00:03:54.

Keywords

glob

FAQs

Package last updated on 19 Sep 2013

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