Skip to content

Support setting maximum size #56

@dominykas

Description

@dominykas

It would be useful to have an option to truncate objects which surpass X KiB when stringified.

I scanned through the code quickly and I saw that maximumBreadth implemention already uses a counter, however it only applies to the current leaf. It seems it should be possible to add another counter, which would apply to the entire passed in object?

The maximumBreadth also includes a 1 item not stringified note inside the object. Not sure what to about the maximumSize though - I guess it could say X items not stringified at the root? Would that be clear enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions