set-property-from-file:使用文件路径和内容设置对象属性

时间:2021-07-07 16:24:48
【文件属性】:
文件名称:set-property-from-file:使用文件路径和内容设置对象属性
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-07 16:24:48
JavaScript 从文件设置属性 使用文件路径和内容设置对象属性 var setPropertyFromFile = require ( 'set-property-from-file' ) ; // foo.txt (Hello!) setPropertyFromFile ( { bar : true } , 'foo.txt' , 'utf8' , function ( err , res ) { if ( err ) { throw err ; } res ; //=> {foo: 'Hello!', bar: true}; } ) ; 安装 npm install set-property-from-file 应用程序接口 var setPropertyFromFile = require ( 'set-property-from-file' ) ; setProp
【文件预览】:
set-property-from-file-master
----.gitignore(22B)
----.eslintrc(111B)
----package.json(1KB)
----.travis.yml(122B)
----LICENSE(1KB)
----index.js(2KB)
----README.md(5KB)
----appveyor.yml(383B)
----.gitattributes(12B)
----test()
--------test.js(4KB)
--------fixtures()
----.editorconfig(188B)

网友评论