glob2base
Extracts a base path from a node-glob instance
Last updated 11 years ago by fractal .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glob2base 
SYNC missed versions from official npm registry.

glob2base NPM version Downloads Support us Build Status Coveralls Status

Information

Packageglob2base
Description Extracts a base path from a node-glob instance
Node Version >= 0.10

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?

Current Tags

  • 0.0.12                                ...           latest (11 years ago)

12 Versions

  • 0.0.12                                ...           11 years ago
  • 0.0.11                                ...           12 years ago
  • 0.0.10                                ...           12 years ago
  • 0.0.9                                ...           12 years ago
  • 0.0.8                                ...           12 years ago
  • 0.0.7                                ...           12 years ago
  • 0.0.6                                ...           12 years ago
  • 0.0.5                                ...           12 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 9
Last Month 3
Dependencies (1)
Dev Dependencies (8)
Dependents (3)

Copyright 2013 - present © cnpmjs.org | Home |