# globject

> Get values by glob-like keys

Latest version **1.0.2** (published 2016-10-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-10-19 |
| First published | 2014-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | glob, key, value, object |

## Links

- npm: https://www.npmjs.com/package/globject
- Repository: https://github.com/scottcorgan/globject
- Homepage: https://github.com/scottcorgan/globject#readme
- Issues: https://github.com/scottcorgan/globject/issues
- npm.io page: https://npm.io/package/globject

## Dependencies (1)

- [minimatch](https://npm.io/package/minimatch.md) ^3.0.3

## Recent versions

- 1.0.2 (latest) — 2016-10-19
- 1.0.1 — 2015-01-14
- 1.0.0 — 2014-11-17
- 0.1.3 — 2014-01-22
- 0.1.2 — 2014-01-16
- 0.1.1 — 2014-01-16
- 0.1.0 — 2014-01-16

## README

# globject

Get values by glob-like keys

## Install

```
npm install globject --save
```

## Usage

```js
var globject = require('globject');
var routes = {
  '**/about/**': 'about.html',
  '**': 'index.html'
};

var routesObj = globject(routes);

console.log(routesObj('/about/somepage.html')); // OUTPUTS: about.html
console.log(routesObj('/any/route.html'')); // OUTPUTS: index.html
```

## Run Tests

```
npm install
npm test
```

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