expand:以递归方式解析对象,字符串或数组中的模板

时间:2021-02-22 07:42:10
【文件属性】:
文件名称:expand:以递归方式解析对象,字符串或数组中的模板
文件大小:15KB
文件格式:ZIP
更新时间:2021-02-22 07:42:10
JavaScript 扩张 递归解析对象,字符串或数组中的模板。 安装 使用安装: $ npm install --save expand 安装 使用安装: $ npm install --save expand 用法 var expand = require ( 'expand' ) ( ) ; expand ( { a : '<%= b %>' , b : 'c' } ) ; //=> {a: 'c', b: 'c'} expand ( { a : '<%= b.c.d %>' , b : { c : { d : 'eee' } } } ) ; //=> {a: 'eee', b: {c: {d: 'eee' }}} 参数 expand ( valueToExpand , dataToUse , options ) ; value {String | Array | Object} :带有要解析的
【文件预览】:
expand-master
----.eslintrc.json(4KB)
----.gitignore(271B)
----package.json(2KB)
----.travis.yml(197B)
----gulpfile.js(600B)
----support()
--------support.js(879B)
--------examples.md(2KB)
--------examples.js(2KB)
----LICENSE(1KB)
----index.js(4KB)
----test.js(9KB)
----.verb.md(3KB)
----utils.js(1KB)
----README.md(7KB)
----example.js(163B)
----.gitattributes(128B)
----.editorconfig(261B)

网友评论