subsy:字符串替换工具,可让您替换JSON属性中的文本

时间:2021-05-06 23:11:57
【文件属性】:
文件名称:subsy:字符串替换工具,可让您替换JSON属性中的文本
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-06 23:11:57
JavaScript 潜移默化的 该工具可让您用JSON对象中的值替换字符串。 安装 npm install subsy --save-dev 如何使用 使用String.replace() var subsy = require ( 'subsy' ) ; var introduction = "Hello, my name is @name.full@. You can call me @name.short@" ; var profile = { "name" : { "short" : "James" , "full" : "James Roland" } } ; //output: Hello, my name is James Roland. You can call me
【文件预览】:
subsy-master
----Gulpfile.js(1KB)
----package.json(950B)
----test()
--------jsonSpec.ts(781B)
----LICENSE(1KB)
----dist()
--------subsy.d.ts(129B)
--------subsy.js(507B)
----src()
--------subsy.ts(508B)
----.npmignore(49B)
----.gitignore(24B)
----tsd.json(342B)
----typings()
--------tsd.d.ts(86B)
--------should()
--------mocha()
----README.md(873B)

网友评论