Skip to content

Add Space Option

Choose a tag to compare

@ericf ericf released this 31 May 21:55
· 135 commits to main since this release

This minor release adds a space option that passes through to JSON.stringify's space option.

serialize({foo: 'foo'}, 2);
{
  "foo": "foo"
}