escape-carriage
Escape \r
the right way.
npm install --save escape-carriage
Usage
var escapeCarriageReturn = require('escape-carriage');
escapeCarriageReturn('This sentence\rThat\nwill make you pause.');
// That sentence
// will make you pause.
Escape carriage return the right way.