var PropertiesReader = require('properties-reader'); var config = PropertiesReader('config/config.properties'); console.log(config.get('database.host')); console.log(config.get('database.name')); console.log(config.get('database.user')); console.log(config.get('database.pass'));