$ cnpm install application-config-path
Store your application config in the right location.
npm install --save application-config-path
var applicationConfigPath = require('application-config-path')
// cfgPath is a string with the path to a directory
// where you can store your config.
var cfgPath = applicationConfigPath('My App')
applicationConfigPath(name)
Return a string with the path to a directory where you can store your application specific config.
MIT
Copyright 2013 - present © cnpmjs.org