globbie

Simple directory globbing using picomatch

Apache-2.0 6 个版本
安装
npm install globbie
yarn add globbie
pnpm add globbie
bun add globbie
README

globbie

A simple directory glob matcher using picomatch

Usage

const Globbie = require('globbie')

const pattern = 'src/**/*.js'

const globbie = new Globbie(pattern)
await globbie.match() // => ['src/index.js', 'src/utils/index.js', ...]

const globbieSync = new Globbie(pattern, { sync: true })
globbie.match() // => ['src/index.js', 'src/utils/index.js', ...]

Options

The following options are available to be set in the options object:

  • sync (boolean, default: false): Whether to use async or sync methods when running match

License

Apache-2.0

版本列表
1.0.5 2026-07-08
1.0.4 2026-07-08
1.0.3 2025-05-13
1.0.2 2025-04-24
1.0.1 2024-07-22
1.0.0 2024-07-16