【文件属性】:
文件名称:node-glob-gitignore:扩展“glob”,支持根据 gitignore 规则过滤文件并公开可选的 Promise API
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-29 09:02:53
nodejs promise glob gitignore-rules JavaScript
全局-gitignore
扩展 ,支持根据 gitignore 规则过滤文件,并基于公开可选的 Promise API。
此模块旨在解决性能问题,请参阅 。
安装
$ npm i glob-gitignore --save
用法
import {
glob ,
sync ,
hasMagic
} from 'glob-gitignore'
// The usage of glob-gitignore is much the same as `node-glob`,
// and it supports an array of patterns to be matched
glob ( [ '**' ] , {
cwd : '/path/to' ,
// Except that options.ignore accepts an array of gitignore
【文件预览】:
node-glob-gitignore-master
----.eslintrc.js(142B)
----src()
--------glob.js(2KB)
--------sync.js(1KB)
--------util.js(3KB)
--------index.js(308B)
----.npmignore(54B)
----.travis.yml(64B)
----LICENSE(1KB)
----test()
--------glob-gitignore.js(3KB)
--------fixtures()
----HISTORY.md(10B)
----README.md(4KB)
----appveyor.yml(496B)
----.editorconfig(194B)
----.gitignore(513B)
----.eslintignore(14B)
----package.json(1KB)