【文件属性】:
文件名称:multimatch:扩展minimatch.match()以支持多种模式
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-26 03:26:40
JavaScript
多重比对
扩展以支持多种模式
安装
$ npm install multimatch
用法
const multimatch = require ( 'multimatch' ) ;
multimatch ( [ 'unicorn' , 'cake' , 'rainbows' ] , [ '*' , '!cake' ] ) ;
//=> ['unicorn', 'rainbows']
有关更多用法示例和预期匹配,请参见。
原料药
多重匹配(路径,模式,选项?)
以输入路径的顺序返回匹配路径的数组。
路径
类型: string | string[] string | string[]
匹配路径。
模式
类型: string | string[] string | string[]
使用通配符模式。 例如: ['*', '!cake'] 。 请参阅支持的。
选项
类型: objec
【文件预览】:
multimatch-main
----index.test-d.ts(332B)
----.gitattributes(19B)
----.github()
--------funding.yml(116B)
--------security.md(179B)
--------workflows()
----license(1KB)
----test()
--------test.js(6KB)
--------globule.js(2KB)
----index.d.ts(826B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(654B)
----readme.md(2KB)
----package.json(884B)