Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lgeiger/escape-carriage
- Owner: lgeiger
- License: mit
- Created: 2016-10-13T16:14:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T21:36:22.000Z (over 1 year ago)
- Last Synced: 2024-10-13T11:32:20.625Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```