matcher:简单的通配符匹配

时间:2021-05-03 01:47:06
【文件属性】:
文件名称:matcher:简单的通配符匹配
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-03 01:47:06
JavaScript 匹配器 简单的匹配 当您要接受松散的字符串输入并且正则表达式/ glob太复杂时,此功能很有用。 安装 $ npm install matcher 用法 const matcher = require ( 'matcher' ) ; matcher ( [ 'foo' , 'bar' , 'moo' ] , [ '*oo' , '!foo' ] ) ; //=> ['moo'] matcher ( [ 'foo' , 'bar' , 'moo' ] , [ '!*oo' ] ) ; //=> ['bar'] matcher ( 'moo' , [ '' ] ) ; //=> [] matcher ( 'moo' , [ ] ) ; //=> [] matcher ( [ '' ] , [ '' ] ) ; //=> [''] matcher . isMatch ( 'unicorn' ,
【文件预览】:
matcher-main
----index.js(2KB)
----test.js(9KB)
----package.json(850B)
----index.test-d.ts(474B)
----readme.md(3KB)
----.github()
--------funding.yml(113B)
--------workflows()
--------security.md(179B)
----license(1KB)
----index.d.ts(3KB)
----bench.js(2KB)
----.gitignore(23B)
----.npmrc(19B)
----fixture.txt(28KB)
----.editorconfig(175B)
----.gitattributes(19B)

网友评论