@plurnk/plurnk-mimetypes-application-toml
v0.3.3
Published
application/toml and text/toml mimetype handler for plurnk-service.
Readme
@plurnk/plurnk-mimetypes-application-toml
application/toml AND text/toml mimetype handler for the plurnk ecosystem.
install
npm i @plurnk/plurnk-mimetypes-application-tomlwhat it does
validate(content)parses TOML viasmol-toml(zero deps, ~100KB) and throws on syntax errors.extract(content)emits afieldsymbol for every table header (including each segment of a dotted header like[a.b.c]) and every key-assignment, at every depth. Line numbers from a line-by-line source scan; the parsed object validates that any matched key is a real key.
license
MIT.
