# glob.js

> UNIX globbing (wildcard matching) for javascript

Latest version **0.1.0** (published 2014-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install glob.js
pnpm add glob.js
yarn add glob.js
bun add glob.js
```

## 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.1.0 |
| Published | 2014-11-15 |
| First published | 2014-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ichuan |
| Maintainers | fansekey |
| Keywords | glob |

## Links

- npm: https://www.npmjs.com/package/glob.js
- Repository: https://github.com/ichuan/glob.js
- Issues: https://github.com/ichuan/glob.js/issues
- npm.io page: https://npm.io/package/glob.js

## Recent versions

- 0.1.0 (latest) — 2014-11-15

## README

## Intro

UNIX globbing (wildcard matching) for javascript


## Usage

### nodejs

```javascript
var glob= require('./glob').glob;
glob.match('pattern', 'string') // ...
```
### browser

```html
<script src="glob.js"></script>
<script>
  window.glob.match('pattern', 'string') // ...
</script>
```

## Fetures

### Match exactly one unknown character
```javascript
glob.match('ab?d', 'abcd') // ok
glob.match('ab\\?d', 'ab?d') // ok
```
### Match any number of unknown characters
```javascript
glob.match('ab*d', 'abcaeg@3d') // ok
glob.match('ab\\*d', 'ab*d') // ok
```
### Match a character as part of a group of characters
```javascript
glob.match('ab[cd]e', 'abce') // ok
```
### Escape character
```javascript
glob.match('ab\\nc', 'abnc') // ok
glob.match('ab\\mc', 'abmc') // ok
```

### Combining
```javascript
glob.match("ab?c*[df]\\d|.q", 'ab1c234fd|.q') // ok
```

## Install

```bash
bower install glob.js
```

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