{"name":"glob2base","description":"Extracts a base path from a node-glob instance","version":"0.0.11","homepage":"http://github.com/wearefractal/glob2base","repository":{"type":"git","url":"git://github.com/wearefractal/glob2base.git"},"author":{"name":"Fractal","email":"contact@wearefractal.com","url":"http://wearefractal.com/"},"main":"./index.js","dependencies":{"lodash":"^2.4.1"},"devDependencies":{"coveralls":"^2.6.1","istanbul":"^0.2.3","jshint":"^2.4.1","jshint-stylish":"^0.2.0","mocha":"^1.17.0","mocha-lcov-reporter":"^0.0.1","glob":"^4.0.0","should":"^4.0.0"},"scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules","test":"npm run-script lint && mocha --reporter spec","coveralls":"istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"engines":{"node":">= 0.10"},"licenses":[{"type":"MIT","url":"http://github.com/wearefractal/glob2base/raw/master/LICENSE"}],"gitHead":"ad402068aa76041bd7ced8144969e544c2ba6dec","bugs":{"url":"https://github.com/wearefractal/glob2base/issues"},"_id":"glob2base@0.0.11","_shasum":"e56904ae5292c2d9cefbc5b97f419614fb56b660","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"fractal","email":"contact@wearefractal.com"},"maintainers":[{"name":"fractal","email":"contact@wearefractal.com"}],"dist":{"shasum":"e56904ae5292c2d9cefbc5b97f419614fb56b660","tarball":"http://registry-npm.ywwl.com/glob2base/download/glob2base-0.0.11.tgz","integrity":"sha512-uXuy7T/np1bo6QoOy/b2NhzBL4hk5H7gjaN1b+yeUGN/07+LWvGqzjeokuoGQfX1h+DenAqPN5vQQ0MXfW/n+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMihjAdRrVN7KI5Rw3fWc95ep2NCgxJqeStpxawVnmSwIhAJhN+vrL/c98jUCMahCdlbEaIaqmLWAxnm4cSOEraFoQ"}],"size":3201,"noattachment":false,"key":"/glob2base/-/glob2base-0.0.11.tgz"},"directories":{},"readme":"# glob2base [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Support us][gittip-image]][gittip-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\n\n## Information\n\n<table>\n<tr>\n<td>Package</td><td>glob2base</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>Extracts a base path from a node-glob instance</td>\n</tr>\n<tr>\n<td>Node Version</td>\n<td>>= 0.10</td>\n</tr>\n</table>\n\n## Usage\n\nThe 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.\n\n```javascript\nvar glob2base = require('glob2base');\nvar glob = require('glob');\n\n// js/\nglob2base(new glob.Glob('js/**/*.js'));\n\n// css/test/\nglob2base(new glob.Glob('css/test/{a,b}/*.css'));\n\n// pages/whatever/\nglob2base(new glob.Glob('pages/whatever/index.html'));\n```\n\n## Like what we do?\n\n[gittip-url]: https://www.gittip.com/WeAreFractal/\n[gittip-image]: http://img.shields.io/gittip/WeAreFractal.svg\n\n[downloads-image]: http://img.shields.io/npm/dm/glob2base.svg\n[npm-url]: https://npmjs.org/package/glob2base\n[npm-image]: http://img.shields.io/npm/v/glob2base.svg\n\n[travis-url]: https://travis-ci.org/wearefractal/glob2base\n[travis-image]: http://img.shields.io/travis/wearefractal/glob2base.svg\n\n[coveralls-url]: https://coveralls.io/r/wearefractal/glob2base\n[coveralls-image]: http://img.shields.io/coveralls/wearefractal/glob2base/master.svg\n","publish_time":1406759420793,"_cnpm_publish_time":1406759420793,"dist-tags":{"latest":"0.0.12"}}