search

Home  >  Q&A  >  body text

node.js - Is it necessary to use .properties as configuration file in nodejs?

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?

曾经蜡笔没有小新曾经蜡笔没有小新2696 days ago1199

reply all(1)I'll reply

  • 学习ing

    学习ing2017-07-06 10:37:30

    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

    reply
    0
  • Cancelreply