@plurnk/plurnk-mimetypes-application-yaml
v0.3.3
Published
application/yaml and text/yaml mimetype handler for plurnk-service.
Readme
@plurnk/plurnk-mimetypes-application-yaml
application/yaml AND text/yaml mimetype handler for the plurnk ecosystem.
install
npm i @plurnk/plurnk-mimetypes-application-yamlwhat it does
validate(content)parses YAML viayaml(zero deps) and throws on syntax errors. Errors propagate per SPEC §7.extract(content)walks the parsed document and emits afieldsymbol for every mapping key at every depth. Sequences recurse into their items so arrays-of-mappings (k8s manifests, helm values, GitHub Actions workflows) surface their nested keys. Line numbers from the library's CST positions.
Sequence and scalar roots have no named keys → empty Symbol[].
license
MIT.
