Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

escape-carriage

lgeiger797kMIT1.3.1TypeScript support: included

Escape carriage return the right way.

carriage, escape, return

readme

escape-carriage

Build Status Greenkeeper badge

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.