handle-backspaces
v2.0.1
Published
Apply backspace characters to a string or UTF-8 Buffer
Maintainers
Keywords
Readme
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 === abdefLICENSE
Apache-2.0
