Module ini/mod

    parse and stringify for handling INI encoded data, such as the Desktop Entry specification.

    import { parse, stringify } from "@std/ini";
    import { assertEquals } from "@std/assert";

    const text = `Global Key=Some data here
    [Section #1]
    Section Value=42
    Section Date=1977-05-25`;

    const parsed = parse(text);

    assertEquals(parse(text), {
    "Global Key": "Some data here",
    "Section #1": {
    "Section Value": 42,
    "Section Date": "1977-05-25",
    },
    });

    assertEquals(stringify(parsed), text);

    Index