Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 252 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 252 Bytes

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