1.0.5 • Published 6 years ago
mycnf v1.0.5
mycnf
Reads MySQL options using my_print_defaults command.
Install
npm install mycnf --saveUsage
const mycnf = require('mycnf');
const config = mycnf();
//> { port: '3306', socket: '/tmp/mysql.sock' }Configuration Options
cmnd: Path to 'my_print_defaults' command. If nocmndis provided, then 'my_print_defaults' command from $PATH is called.file: Path of config file to read, defaults to reflecting MySQL config (usually ~/.my.cnf).group: Name of config file group to parse, default to 'client'.
Environment Variables
MYCNF_CMNDMYCNF_FILEMYCNF_GROUP