Skip to main content

YAML and TOML documents

YAML and TOML now belong to @loaders.gl/documents.

The @loaders.gl/documents module provides dependency-free parsers for YAML and TOML configuration documents. Both loaders return ordinary JavaScript objects, arrays, and scalar values through the standard loaders.gl APIs.

Installation​

npm install @loaders.gl/core @loaders.gl/documents

Loaders​

LoaderDescription
YAMLLoaderLoads YAML documents from .yaml and .yml files.
TOMLLoaderLoads TOML documents from .toml files.

The package root exports metadata-only loaders. Async core APIs preload the parser automatically. For synchronous parsing, import YAMLLoaderWithParser from @loaders.gl/documents/yaml or TOMLLoaderWithParser from @loaders.gl/documents/toml.

The YAML and TOML implementations are maintained in this repository and do not import third-party YAML or TOML parser packages.

Sources and credits​

See the package source and license inventory and the project-wide Attributions and Credits.