@midwayjs/glob
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

midway easy glob tools

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

API

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' ]

Readme

Keywords

none

Package Sidebar

Install

npm i @midwayjs/glob

Weekly Downloads

1,395

Version

1.1.1

License

MIT

Unpacked Size

6.16 kB

Total Files

4

Last publish

Collaborators

  • mariodu
  • czy88840616
  • legendecas
  • echosoar
  • lellansin
  • lxxyx
  • stone-jin