Mobile Man
Mobile Man

Reputation: 321

NodeJS - Where To Keep Node Config Data?

I have written two node scripts running on Mac/Unix which invoke rest services. Each script requires some configuration information like endpoints, keys, secrets, passwords etc. Not sure how this information should be stored or passed to the node scripts? I'm new to node and not sure where this type of information is typically stored for a node application. Its really just a bunch of scripts that I intend to call periodically, so these are not services but scripts that invoke services.

Upvotes: 0

Views: 65

Answers (1)

Mobile Man
Mobile Man

Reputation: 321

Looks like node-config module is the way to go:

 https://github.com/lorenwest/node-config

Upvotes: 1

Related Questions