0.2.0 • Published 10 years ago

theconf v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

theconf

Index

Disclaimer

I made this module to solve a problem I had with database passwords hardcoded in the source. I didn't know where to store it, so I wrote theconf and it made my life easier.

What it is

theconf is a module that reads your application's configuration file and returns the data to your index.js, or server.js, or whatever name you call the file that needs the data.

You may use a configuration file to store databases URL, password and user, user defined settings, etc.

What it does

theconf reads the conf file with json syntax, parses it and returns to whoever called it. But if the file doesn't exists, a prompt starts and asks the user about the configuration settings to put in the conf file.

Done asking, the data is returned to the module that writes it down to the file, the data is loaded and returned to your server.js or index.js.

License

MIT

0.2.0

10 years ago

0.1.0

10 years ago