04.02.2014, 01:22, "Gary Katsevman" <[email protected]>:

On Mon, Feb 3, 2014 at 4:18 PM, Alex Kocharin <[email protected]> wrote:
PS: why not simply use "require('js-yaml').safeLoad(require('fs').readFileSync('config', 'utf8'))" anyway ?
Or for really simple things, just `require('packge.json')` or `require('./config.json')`;
 
 
 
In this case you should make that require('./config.js') and write "module.exports = {...}" in there.
 
As I said multiple times here, using JSON for a configuration file is a terrible idea.
 

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to