Remove or replace part of a
Buffer
likeArray#splice
Install
$ npm install splice-buffer
Usage
const spliceBuffer = ; ;//=> 'universe'
API
spliceBuffer(input, index, count, [insert])
input
Type: Buffer
index
Type: number
Index to start splicing.
count
Type: number
Number of characters to remove.
insert
Type: string
String to insert in place of the removed Buffer
.
License
MIT © Kevin Mårtensson