node.js - Is it necessary to use .properties as configuration file in nodejs?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-07-06 10:35:30
0
1
1230

Is it necessary to use .properties as a configuration file in nodejs?
I learned about .properties in the java project. As a project configuration file, you only need to modify the content after the equal sign to configure the project without changing the code, which is very useful. But in nodejs projects, you can use json files as configuration files. Why do some projects still use .properties? Is it because I am used to writing Java in the past, or is .properties more convenient than json files?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
学习ing

There is definitely no absolute format for the configuration file. Whichever is more convenient to use? If some projects still use .properties, it may be for historical reasons. For example, it was like this when this project was created, or some existing The program depends on this configuration file and so on

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template