0.0.12 • Published 9 years ago

glob2base v0.0.12

Weekly downloads
666,966
License
-
Repository
github
Last release
9 years ago

glob2base NPM version Downloads Support us Build Status Coveralls Status

Information

Usage

The module is a function that takes in a node-glob instance and returns a string. Basically it just gives you everything before any globbing/matching happens.

var glob2base = require('glob2base');
var glob = require('glob');

// js/
glob2base(new glob.Glob('js/**/*.js'));

// css/test/
glob2base(new glob.Glob('css/test/{a,b}/*.css'));

// pages/whatever/
glob2base(new glob.Glob('pages/whatever/index.html'));

Like what we do?