npm.io
2.0.1 • Published 2 years ago

handle-backspaces

Licence
Apache-2.0
Version
2.0.1
Deps
0
Size
15 kB
Vulns
0
Weekly
0

handle-backspaces

Apply backspace characters to a string or UTF-8 Buffer.

import handleBackspaces from 'handleBackspaces';

const input = 'abc\u0008def';
const output = handleBackspaces(input);
// output === abdef

LICENSE

Apache-2.0

Keywords