没有合适的资源?快使用搜索试试~ 我知道了~
metalsmith-regex-replace:一个Metalsmith插件,用于在源文件中执行文本搜索和替换
共68个文件
txt:49个
js:7个
json:3个
需积分: 9 0 下载量 70 浏览量
2021-05-10
15:09:38
上传
评论
收藏 58KB ZIP 举报
温馨提示
Metalsmith-regex-replace 一个Metalsmith插件,用于在源文件中执行文本搜索和替换 该插件允许指定在Metalsmith构建期间要执行的一对搜索/替换操作的列表。 这可用于修复常见的错字,检查NSFW文本,隐藏敏感信息等。 安装 npm install metalsmith-regex-replace 用法 该插件需要一个带有称为subs的键的对象,该对象包含一个带replace键的replace对象数组,这些键用于search和replace 。 搜索 类型: string或RegExp 代替 类型: string或function 如果使用函数作为replace参数,则它应具有String.prototype.replace ( )中描述的签名。 例子 { subs : [ { search : "some text or si
资源推荐
资源详情
资源评论
收起资源包目录
metalsmith-regex-replace-master.zip (68个子文件)
metalsmith-regex-replace-master
.gitignore 88B
package.json 610B
Makefile 727B
package-lock.json 19KB
src
loader.js 454B
plugin.js 442B
replace.js 3KB
config.js 371B
.travis.yml 491B
LICENSE 1KB
README.md 6KB
.gitattributes 12B
test
test.js 11KB
fixtures
options-default
src
story.txt 296B
expected
story.txt 287B
word-boundaries
src
word_within_word.txt 75B
possessive.txt 65B
preserve_original_case.txt 59B
EOL.txt 19B
BOL.txt 59B
punctuation.txt 43B
brackets.txt 71B
expected
word_within_word.txt 75B
possessive.txt 65B
preserve_original_case.txt 59B
EOL.txt 19B
BOL.txt 59B
punctuation.txt 43B
brackets.txt 71B
subs-object
src
drink_away_the_pain.txt 100B
expected
drink_away_the_pain.txt 99B
search-string
src
walls.txt 53B
expected
walls.txt 53B
subs-file-json
src
wut.txt 32B
subs.json 180B
expected
wut.txt 32B
search-regexp-literal
src
tabs2spaces.txt 338B
expected
tabs2spaces.txt 361B
subs-file-yaml
subs.yml 71B
src
wut.txt 32B
expected
wut.txt 32B
options-match
src
story.txt 296B
expected
story.txt 287B
replace-function
src
camel2snake.js 221B
expected
camel2snake.js 230B
preserve-case
src
capitalized.txt 26B
allcaps.txt 32B
expected
capitalized.txt 28B
allcaps.txt 34B
subs-file-whatever
src
wut.txt 32B
subs.txt 180B
expected
wut.txt 32B
search-regexp
src
tabs2spaces.txt 338B
expected
tabs2spaces.txt 361B
replace-backref
src
boo.txt 145B
discography.txt 220B
expected
boo.txt 137B
discography.txt 244B
subs-function
src
memory_lane.txt 97B
expected
memory_lane.txt 99B
bypass
src
badger.txt 122B
acceptable_uses.txt 216B
expected
badger.txt 102B
acceptable_uses.txt 210B
options-global
src
story.txt 296B
expected
story.txt 290B
.editorconfig 221B
yarn.lock 49KB
共 68 条
- 1
资源评论
不吃酸菜的小贱人
- 粉丝: 44
- 资源: 4668
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功