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

https://github.com/artdecocode/clearr

Updates The String To Remove R (Carriage Return) Just Like The Terminal Would Do.
https://github.com/artdecocode/clearr

Last synced: 11 months ago
JSON representation

Updates The String To Remove R (Carriage Return) Just Like The Terminal Would Do.

Awesome Lists containing this project

README

          

# clearr

[![npm version](https://badge.fury.io/js/clearr.svg)](https://npmjs.org/package/clearr)

`clearr` Updates The String To Remove `\r` (Carriage Return) Just Like The Terminal Would Do.

```sh
yarn add -E clearr
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`clearr(string: string): string`](#clearrstring-string-string)
- [Copyright](#copyright)

## API

The package is available by importing its default function:

```js
import clearr from 'clearr'
```

## `clearr(`
  `string: string,`
`): string`

Clears the carriage return like the terminal would.

```js
/* alanode example/ */
import clearR from 'clearr'

const res = clearR('...\r..?\r.!')
console.log(res)
```
```
.!?
```

## Copyright

(c) [Art Deco][1] 2019

[1]: https://artd.eco