clearr

1.1.0 • Public • Published

Clearr

npm version Pipeline Badge

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

yarn add clearr
npm i clearr

Table Of Contents

API

The package is available by importing its default function:

import clearr from 'clearr'

clearr(
  string: string,
): string

Clears the carriage return like the terminal would.

/* alanode example/ */
import clearR from 'clearr'
 
const res = clearR('...\r..?\r.!')
console.log(res)
.!?

Copyright & License

GNU Affero General Public License v3.0

Art Deco © Art Deco™ 2020 AGPL-3.0

Package Sidebar

Install

npm i clearr

Weekly Downloads

26

Version

1.1.0

License

AGPL-3.0

Unpacked Size

5.69 kB

Total Files

9

Last publish

Collaborators

  • zvr