[[oktatas:web:nodejs|< Node.js]]
====== PropertiesReader ======
* **Szerző:** Sallai András
* Copyright (c) 2023, Sallai András
* Szerkesztve: 2023-2024
* Licenc: [[https://creativecommons.org/licenses/by-sa/4.0/|CC BY-SA 4.0]]
* Web: https://szit.hu
===== Telepítés =====
npm install properties-reader
===== Példa =====
app01/
|-config/
| `-config.properties
|-node_modules/
|-index.js
|-packages-lock.json
`-package.json
database.host = localhost
database.name = azold
database.user = janos
database.pass = titok
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'));