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.
- Host: GitHub
- URL: https://github.com/artdecocode/clearr
- Owner: artdecocode
- License: mit
- Created: 2019-04-01T13:14:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T13:21:09.000Z (about 7 years ago)
- Last Synced: 2025-02-25T15:52:03.909Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://artd.eco
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# clearr
[](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