@plurnk/plurnk-mimetypes-text-dotenv
v1.7.0
Published
text/x-dotenv (.env) mimetype handler for plurnk-service. Variables as symbols, values exposed. Hand-rolled, no parser dependency.
Readme
@plurnk/plurnk-mimetypes-text-dotenv
text/x-dotenv (.env) mimetype handler for the plurnk ecosystem. Hand-rolled, no parser dependency.
install
npm i @plurnk/plurnk-mimetypes-text-dotenvwhat it does
extractRaw(content)— each variable is aconstantsymbol at its line.exportprefixes are handled; comments (#) and non-variable lines are ignored.deepJson(content)— the{ KEY: value }map, a jsonpath target ($.MODEL). One layer of matching surrounding quotes is stripped; unquoted values are taken verbatim.query(content, dialect, pattern)— jsonpath against the value map; regex/glob against the raw text.
Values are exposed, not redacted. A .env file is config; plenty of workflows carry no secrets in it, so the handler treats values like any other configuration. The raw body is directly readable, so there is no content projection. References are not applicable.
license
MIT.
