Skip to content

JSON.stringify(str).length gives invalid byte count #26

Open
@coolaj86

Description

@coolaj86

the solution is to do new Buffer(JSON.stringify(str)).length

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