【文件属性】:
文件名称:node-properties:.properties parserstringifier
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-07 14:37:13
JavaScript
特性
.properties解析器/字符串化器
该模块实现Java .properties规范,并添加了其他功能,如节,变量(键引用),名称空间,导入文件等等。
快速示例
# file
a = 1
b: 2
c 3
var properties = require ( "properties" ) ;
properties . parse ( "file" , { path : true } , function ( error , obj ) {
if ( error ) return console . error ( error ) ;
console . log ( obj ) ;
//{ a: 1, b: 2, b: 3 }
} ) ;
文献资料
职能
模块.parse(data [,options] [,callback]):未定义| 目的
模块.createSt
【文件预览】:
node-properties-master
----lib()
--------read.js(12KB)
--------stringify.js(4KB)
--------stringifier.js(479B)
--------write.js(1KB)
--------parse.js(6KB)
--------index.js(214B)
--------escape.js(1KB)
----.npmignore(54B)
----examples()
--------namespaces()
--------variables()
--------private-vars()
--------reviver()
--------replacer.js(896B)
--------ini()
--------include()
----benchmark()
--------stringify.js(919B)
--------parse()
----.travis.yml(48B)
----LICENSE(1KB)
----CHANGES(5KB)
----test()
--------include-2(40B)
--------sections(111B)
--------include-relative-4(3B)
--------properties(457B)
--------include-namespaces-1(36B)
--------index.properties(50B)
--------namespaces(53B)
--------variables-sections-namespaces(37B)
--------variables(94B)
--------include-1(22B)
--------include-section-2(7B)
--------include-section-1(33B)
--------variables-sections(249B)
--------stringify.js(6KB)
--------include-empty(0B)
--------include-variables-2(8B)
--------include-section-error-2(1B)
--------include-relative-1(70B)
--------include-section-error-1(34B)
--------include-relative-3(3B)
--------parse.js(12KB)
--------include-relative()
--------namespaces-sections(72B)
--------include-variables-1(33B)
--------include-namespaces-2(19B)
----README.md(19KB)
----.gitignore(12B)
----package.json(524B)