Skip to main content
Module

x/ini/mod.ts

An ini parser/serializer in TypeScript for the Deno runtime
Latest
import * as ini from "https://deno.land/x/ini@v2.1.0/mod.ts";

Functions

Decode the given ini-style formatted document into a nested object.

Encode the object object into an ini-style formatted string. If the optional parameter section is given, then all top-level properties of the object are put into this section and the section-string is prepended to all sub-sections, see the usage example above.

Escapes the string val such that it is safe to be used as a key or value in an ini-file. Basically escapes quotes. For example:

Unescapes the given string value.