serve-ini
v1.0.1
Published
serve-ini is a Node.js module designed to effortlessly read and process configuration files from a directory. π It supports reading INI files π and organizing configurations into a nested structure based on directory and file names
Downloads
6
Maintainers
Readme
serve-ini π
serve-ini
is a Node.js module designed to effortlessly read and process configuration files from a directory. π It supports reading INI files π and organizing configurations into a nested structure based on directory and file names. ποΈ
Features β¨
- Recursively reads configuration files from a directory. π
- Supports ini file format. INI π€
- Organizes configurations in a nested structure based on directory structure. π¦
Installation β¬οΈ
yarn add serve-ini
OR
npm install serve-ini
Usage
Importing module
import SIC from 'serve-ini';
Loading configuration
const configFolderPath = 'YOUR_CONFIG_FOLDER_PATH';
const configurations = SIC(configFolderPath);
console.log(configurations);
APIπ
serveINIConfigurations(configFolderPath: string): object
Parameters:
configFolderPath
(string): Path to the directory containing configuration files.π
Returns:
- An object containing the configurations organized in a nested structure.π³