# glob2base

> Extracts a base path from a node-glob instance

Latest version **0.0.12** (published 2014-11-13) · 0 weekly downloads

## Install

```sh
npm install glob2base
pnpm add glob2base
yarn add glob2base
bun add glob2base
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2014-11-13 |
| First published | 2013-12-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Fractal |
| Maintainers | fractal |

## Links

- npm: https://www.npmjs.com/package/glob2base
- Repository: https://github.com/wearefractal/glob2base
- Homepage: http://github.com/wearefractal/glob2base
- Issues: https://github.com/wearefractal/glob2base/issues
- npm.io page: https://npm.io/package/glob2base

## Dependencies (1)

- [find-index](https://npm.io/package/find-index.md) ^0.1.1

## Recent versions

- 0.0.12 (latest) — 2014-11-13
- 0.0.11 — 2014-07-30
- 0.0.10 — 2014-07-22
- 0.0.9 — 2014-06-01
- 0.0.8 — 2014-02-09
- 0.0.7 — 2014-02-08
- 0.0.6 — 2014-02-08
- 0.0.5 — 2014-02-05
- 0.0.4 — 2014-01-05
- 0.0.3 — 2013-12-28
- 0.0.2 — 2013-12-17
- 0.0.1 — 2013-12-17

## 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]


## Information

<table>
<tr>
<td>Package</td><td>glob2base</td>
</tr>
<tr>
<td>Description</td>
<td>Extracts a base path from a node-glob instance</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.10</td>
</tr>
</table>

## 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.

```javascript
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?

[gittip-url]: https://www.gittip.com/WeAreFractal/
[gittip-image]: http://img.shields.io/gittip/WeAreFractal.svg

[downloads-image]: http://img.shields.io/npm/dm/glob2base.svg
[npm-url]: https://npmjs.org/package/glob2base
[npm-image]: http://img.shields.io/npm/v/glob2base.svg

[travis-url]: https://travis-ci.org/wearefractal/glob2base
[travis-image]: http://img.shields.io/travis/wearefractal/glob2base.svg

[coveralls-url]: https://coveralls.io/r/wearefractal/glob2base
[coveralls-image]: http://img.shields.io/coveralls/wearefractal/glob2base/master.svg

---
_Source: https://npm.io/package/glob2base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
