moontoml — TOML 1.0.0 for MoonBit. Reads and writes the format MoonBit's own moon.mod and moon.pkg are written in, into the same `Json` tree every other reader in this family produces: tables and arrays of tables, dotted keys, the four string forms, the four date-time forms, and integers in four bases.
let config = @moontoml.loads(
#|name = "moonbitstack/moontoml"
#|version = "0.1.0"
#|keywords = [ "toml", "config" ]
#|
#|[import]
#|"moonbitstack/moondate" = "0.1.0"
)
@moontoml.dumps(config) // back to TOML, tables under their own headers@moontoml.loads(src, flavor=@moontoml.Flavor::new(depth=64))
@moontoml.load(bytes, bom=false)moon add moonbitstack/moontomllet depth : IntInstall
Download zipmoontoml — TOML 1.0.0 for MoonBit. Reads and writes the format MoonBit's own moon.mod and moon.pkg are written in, into the same `Json` tree every other reader in this family produces: tables and arrays of tables, dotted keys, the four string forms, the four date-time forms, and integers in four bases.