# @midwayjs/glob

> 实现一个基础轻量的 globby，为了兼容 faas-glob 语法，引入纯 js 版的 picomatch 库，除此之外，无其他依赖。

Latest version **1.1.1** (published 2023-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @midwayjs/glob
pnpm add @midwayjs/glob
yarn add @midwayjs/glob
bun add @midwayjs/glob
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-02-09 |
| First published | 2020-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | mariodu, czy88840616, legendecas, echosoar, lellansin, lxxyx, stone-jin |

## Links

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

## Dependencies (1)

- [picomatch](https://npm.io/package/picomatch.md) ^2.3.1

## Recent versions

- 1.1.1 (latest) — 2023-02-09
- 1.0.7-beta.1 (beta) — 2021-08-10
- 1.1.0 — 2022-11-17
- 1.0.6 — 2020-06-29
- 1.0.5 — 2020-06-29
- 1.0.4 — 2020-06-28
- 1.0.3 — 2020-06-17
- 1.0.2 — 2020-06-16
- 1.0.1 — 2020-06-16
- 1.0.0 — 2020-06-16

## README

# midway easy glob tools

实现一个基础轻量的 globby，为了兼容 faas-glob 语法，引入纯 js 版的 picomatch 库，除此之外，无其他依赖。

## API

```ts
import { run } from '@midwayjs/glob';

const result = run(['**/*.md'], {
  cwd: join(__dirname, './fixtures/first'),
  ignore: [
    '**/c.md',
    '**/bbbb/**'
  ]
});
console.log(result); // Output: [ '/Users/harry/project/glob/test/fixtures/first/a.md' ]

```

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