简单的通配符匹配-Node.js开发

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

网友评论