sindresorhus/stringify-object

Stringify object doesn't escape newlines in strings

Closed this issue · 1 comments

For example require('stringify-object')({ foo: '\n' }) returns:

{
    foo: '
'
}

\n and \r characters need to be escaped.

Thanks a lot 👍