replace-string-if:有条件地替换流中的字符串的转换流

时间:2021-07-10 22:12:48
【文件属性】:
文件名称:replace-string-if:有条件地替换流中的字符串的转换流
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-10 22:12:48
JavaScript 替换字符串如果 这是一个转换流。 如果传递的条件评估为真,则在流上运行字符串替换。 安装 npm install replace-string-if 用法 var condition = function () { return true; }; var match = 'expression'; var replacement = 'newexpression'; var replaceStringIf(condition(), match, replacement);
【文件预览】:
replace-string-if-master
----.jshintrc(644B)
----.npmignore(86B)
----gulpfile.js(1KB)
----LICENSE(1KB)
----test()
--------fixtures()
--------replacestring.js(1KB)
----README.md(392B)
----.esformatter(35B)
----index.js(408B)
----package.json(862B)

网友评论