safe-sortedjson

1.0.8 • Public • Published

safe-sortedjson

sortedjson, guarded against recursion and some unicode confusion.

API

This module exports one function:

safeSortedJsonify(data[, opts])

opts is an optional options object that supports these keys:

  • All the options from deepsortobj.
    • However, if circular is false-y (e.g. missing), it will default to a function that always returns the string '[Circular]'.
  • replacer, space: As described in sortedjson.
  • undef: What to return if (data === undefined). Default: undefined

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i safe-sortedjson

Weekly Downloads

3

Version

1.0.8

License

ISC

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • mk-pmb