文件名称:union-replacer:一站式String.prototype.replace()处理器,带有多个正则表达式和替换
文件大小:82KB
文件格式:ZIP
更新时间:2024-05-21 01:27:23
JavaScript
UnionReplacer UnionReplacer使用多个正则表达式和相应的替换项提供一遍式全局搜索和替换功能。 否则,行为与String.prototype.replace(regexp, newSubstr|function)匹配。 大纲 安装及使用 在浏览器中: < script src =" https://unpkg.com/union-replacer/dist/union-replacer.umd.js " /> 使用 : npm install union-replacer 在: const UnionReplacer = require ( 'union-replacer' ) ; 使用 : // with esModuleInterop enabled in tsconfig (recommended): import UnionReplacer f
【文件预览】:
union-replacer-master
----.eslintrc.json(1KB)
----.gitattributes(19B)
----rollup.config.js(843B)
----.github()
--------workflows()
----src()
--------MatchingContext.js(3KB)
--------UnionReplacer.js(6KB)
--------ReplacementStringBuilder.js(526B)
--------typedefs.js(5KB)
--------UnionReplacerElement.js(3KB)
--------typedefs-tscompat.js(447B)
----scripts()
--------tsd-postprocess.js(986B)
--------lib()
----types()
--------tsconfig.json(382B)
--------tslint.json(205B)
--------test.ts(2KB)
--------index.d.ts(10KB)
----LICENSE(1KB)
----test()
--------.eslintrc.json(141B)
--------union-replacer.spec.js(3KB)
--------readme.spec.js(285B)
--------union-replacer-matching.spec.js(954B)
--------matching-context.spec.js(1KB)
--------markdown-doc-behavior.js(2KB)
--------jasmine.json(151B)
----README.md(11KB)
----.jsdoc.conf.js(483B)
----.gitignore(938B)
----.eslintignore(5B)
----package-lock.json(217KB)
----package.json(2KB)