/** * config format: "friendly JSON" for TypeScript :D * it is essentially JSON, except: * - the root of a document may be an "implicit map" * - simple ASCII identifier keys may be unquoted in maps * - trailing commas are permitted in maps and arrays * - commas can be replaced by newlines in maps and arrays * - strings may be single-quoted * - documents may contain `// comments` * * ```ts * import { parse, stringify } from "./mod.ts"; * const value = parse("name: 'demo'\nactive: true"); * // => { "name": "demo", "active": true } * ``` */ export { FjsonError } from "./errors.ts"; export type { FjsonErrorKind, Span } from "./errors.ts"; export { DEFAULT_MAX_DEPTH, resolveMaxDepth } from "./options.ts"; export type { Options } from "./options.ts"; export { nodeToValue, parse, parseObject, parseObjectTree, parseTree, } from "./parse.ts"; export { stringify } from "./stringify.ts"; export { apply, applyWith } from "./apply.ts"; export { Document } from "./document.ts"; export type { PathSegment } from "./document.ts"; export type { ArrayNode, BoolNode, JsonObject, JsonValue, NullNode, NumberNode, ObjectMember, ObjectNode, StringNode, SyntaxNode, } from "./parse.ts";