node.js - 如何在 Node js中定义属性文件?

标签 node.js properties

我在这里找到了一篇关于 node js 中的属性文件读取器的文章: https://www.npmjs.com/package/properties-reader

有一个名为“properties-reader”的模块。但是,我无法理解如何定义属性文件。应该是json吗?

最佳答案

这是一种 ini 格式,如所述 here :

# contents of properties file
[main]
some.thing = foo

[blah]
some.thing = bar

关于node.js - 如何在 Node js中定义属性文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28870242/

相关文章:

Python 属性错误 : property cannot overwrite inherited attribute?

ios - 从 UIView 子类访问属性

jquery - 尝试检查文本字段是否有文本,然后根据检查启用/禁用提交

java - struts2 i18n java属性,如何转义字符?

Powershell 自行更改数组内容

sql - Sequelize : Including join table attributes in findAll include

javascript - REST Api 返回验证码

node.js - 将 React 应用程序部署到 Google App Engine 时出现 502 服务器错误

javascript - Node.js fs.watchFile,是否可以一次检查更改?

node.js - Socket.IO 1.0.x : Get socket by id