v0.1.5
This release adds a new entrypoint @bgotink/kdl/json
which takes a Node
or Document
in the JSON-in-KDL format and returns the encoded JSON data.
import {parse} from '@bgotink/kdl';
import {toJson} from '@bgotink/kdl/json';
expect(
toJson(
parse(
String.raw`
- false
`,
),
),
).toEqual(false);