clearr
Updates The String To Remove \r
(Carriage Return) Just Like The Terminal Would Do.
yarn add -E clearr
The package is available by importing its default function:
import clearr from 'clearr'
Clears the carriage return like the terminal would.
/* alanode example/ */
import clearR from 'clearr'
const res = clearR('...\r..?\r.!')
console.log(res)
.!?
(c) Art Deco 2019