Developer tool · Sample project

Run your first comparison

Compare two versions of a display configuration. By the end, your terminal will identify one added setting and one changed setting.

Foldline 0.1.0-preview.1

Get the preview module

Check your Node.js version, then save the JavaScript module from the release below into an empty folder. Run the remaining steps in that folder.

node --version
Get Foldline 0.1.0-preview.1 →

Save before.json

Create a file named before.json next to the downloaded script and paste in this object.

{"theme":"paper","layout":"grid"}

Save after.json

In the same folder, create after.json. This version adds a compact setting and changes the theme.

{"theme":"ink","layout":"grid","compact":true}

Run the comparison

Run the module from the folder containing all three files. Pass the earlier configuration first.

node foldline-0.1.0-preview.1.mjs before.json after.json

Check the result

The plus marks the new setting. The tilde marks the changed value. The layout setting is identical in both files, so it has no output line.

+ compact
~ theme