T
T
triggerfinger2018-01-31 20:49:41
JavaScript
triggerfinger, 2018-01-31 20:49:41

What is the best way to store the config: from .js or .json?

Is there a fundamental difference / advantage how to store and import the project config - just from a JSON file or as a module from JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-01-31
@triggerfinger

If stored in js, there is a temptation to execute some code there. Which can cause some of the logic to be in the config file...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question