【文件属性】:
文件名称:stimmy:轻松将字符串变量替换为您的值
文件大小:80KB
文件格式:ZIP
更新时间:2021-05-26 10:39:24
javascript es6 string variable flowtype
刺激
描述
该模块提供了一个字符串变量替换器。
安装
$ npm install @rimiti/stimmy --save
特征
可以替换对象中的变量。
可以替换数组中的变量。
文献资料
例子
从进口
import stimmy from '@rimiti/stimmy' ;
从要求
const stimmy = require ( '@rimiti/stimmy' ) ;
初始化模式
// As default, use the {myVariable} pattern
const replacer = stimmy ( ) ;
// If you want to customized default pattern (ex: {{myVariable}}
const replacer = stimmy ( '{{' , '}}' )
从数组
const str = r
【文件预览】:
stimmy-master
----.eslintrc(207B)
----.flowconfig(87B)
----src()
--------index.js(1KB)
----.babelrc(149B)
----.npmignore(566B)
----.codeclimate.yml(61B)
----.travis.yml(146B)
----LICENSE(1KB)
----__tests__()
--------index.js(4KB)
----README.md(3KB)
----.editorconfig(231B)
----.gitignore(203B)
----.eslintignore(57B)
----package-lock.json(329KB)
----package.json(2KB)