javascript - Nodejs .ini module (variable names start with a number) -
.ini file:
[1] 10x=true [2] 10x=true
node.js :
var ms = ini.parse(fs.readfilesync(__dirname + '/xxx/ms.ini', 'utf-8')); console.log(ms.1.10x);
i using : var ini = require('ini');
module's link here : https://www.npmjs.org/package/ini .ini files variable names start number node.js give me error :
i have many logs in .ini file, can not alter variable names. there way prepare it?
i guess need utilize syntax
console.log(ms[1]['10x']);
javascript node.js ini
No comments:
Post a Comment