clearr

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

AGPL-3.0 2 个版本
安装
npm install clearr
yarn add clearr
pnpm add clearr
bun add clearr
README

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)
.!?

GNU Affero General Public License v3.0

Art Deco © Art Deco™ 2020 AGPL-3.0
版本列表
1.1.0 2020-04-08
1.0.0 2019-04-01