$ cnpm install 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
Apache-2.0
Copyright 2013 - present © cnpmjs.org | Home |