string-to-template:字符串中的ES6模板文字

时间:2021-05-18 10:19:11
【文件属性】:
文件名称:string-to-template:字符串中的ES6模板文字
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-18 10:19:11
javascript es6 string template-literals JavaScript 字符串到模板 从字符串开始的ES6模板文字。 使用json配置文件时的常见情况。 安装 npm i string - to - template -- save 用法 const execute = require ( 'string-to-template' ) const result = execute ( "hello ${name}" , { name : 'John' } ) const another = execute ( "extension is \"${filename.split('.')[1]}\"" , { filename : 'hi.json' } ) 执照 麻省理工学院
【文件预览】:
string-to-template-master
----.gitignore(12B)
----package.json(711B)
----.travis.yml(144B)
----LICENSE(1KB)
----index.js(222B)
----README.md(694B)
----test()
--------unit.js(1KB)

网友评论