Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lgeiger/escape-carriage

Escape carriage return the right way
https://github.com/lgeiger/escape-carriage

Last synced: 19 days ago
JSON representation

Escape carriage return the right way

Awesome Lists containing this project

README

        

# escape-carriage

[![Build Status](https://travis-ci.org/lgeiger/escape-carriage.svg?branch=master)](https://travis-ci.org/lgeiger/escape-carriage) [![Greenkeeper badge](https://badges.greenkeeper.io/lgeiger/escape-carriage.svg)](https://greenkeeper.io/)

Escape `\r` the right way.

```
npm install --save escape-carriage
```

## Usage

```javascript
var escapeCarriageReturn = require('escape-carriage');

escapeCarriageReturn('This sentence\rThat\nwill make you pause.');
// That sentence
// will make you pause.
```