# glob-adapter

> same interface for different glob implementations

Latest version **1.2.0** (published 2018-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install glob-adapter
pnpm add glob-adapter
yarn add glob-adapter
bun add glob-adapter
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2018-03-27 |
| First published | 2018-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=9.x.x |
| Dependencies | 3 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sönke Kluth |
| Maintainers | soenkekluth |

## Links

- npm: https://www.npmjs.com/package/glob-adapter
- Repository: https://github.com/soenkekluth/glob-adapter
- Homepage: https://github.com/soenkekluth/glob-adapter#readme
- Issues: https://github.com/soenkekluth/glob-adapter/issues
- npm.io page: https://npm.io/package/glob-adapter

## Dependencies (3)

- [glob-fs](https://npm.io/package/glob-fs.md) ^0.1.7
- [is-glob](https://npm.io/package/is-glob.md) ^4.0.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^2.2.0

## Recent versions

- 1.2.0 (latest) — 2018-03-27
- 1.1.0 — 2018-03-27
- 1.0.2 — 2018-03-27
- 1.0.1 — 2018-03-27

## README

# glob-adapter
same interface for different glob implementations


## Usage

```js
const adapter = require('glob-adapter').adapter;

const glob = adapter();
const res = await glob.read('./*.js');
console.log(res); // ['file1.js', 'file2.js']

const syncRes = glob.readSync('./*.js');
console.log(syncRes); // ['file1.js', 'file2.js']


// glob-fs
const globFs = adapter('glob-fs');
const res = await globFs.read('./*.js');
console.log(res); // ['file1.js', 'file2.js']

// fast-glob (default)
const fastGlob = adapter('fast-glob');
const res = await fastGlob.read('./*.js');
console.log(res); // ['file1.js', 'file2.js']
```

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