lcf-lib
v25.1.0
Published
Lightweight Config File (lcf) parser for Node.js (ESM + TypeScript)
Maintainers
Readme
Lightweight Config File (lcf)
Is a Lightweight configuration file made for all those aplications than need one of this, we support js with our package lcf and for java we jave our maven lib than you can use anywhere.
::{path}
{key}>>{value}
::{subPath}
{key}>>{value}::config
debug>>true
::production
port>>80This are the supported data types for the values.
["", "", ""]
[0, 0, 0]
[true, false, false]
""
true/false
5
0.50Also if you are using vscode and other code editor u can install lcf-linter.
${key}>>{value}wiht the $ symbol you can hide values from text hover at code.
Node.js
In javascript you can install lcf-lib by executing the following command. (Types inluded)
npm install lcf-libNow you can use the lib.
import { LCFConfig } from "lcf-lib"
const config = LCFConfig("./config.lcf")
const debug = config.get("config:debug")
const debug = config.get("config:production:port")