Skip to content

v0.1.5

Compare
Choose a tag to compare
@bgotink bgotink released this 03 Sep 15:13
· 66 commits to main since this release
v0.1.5
cd8c8e1

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);