# splice-buffer

> Remove or replace part of a Buffer like Array#splice

Latest version **1.0.0** (published 2017-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install splice-buffer
pnpm add splice-buffer
yarn add splice-buffer
bun add splice-buffer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-08-16 |
| First published | 2017-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | add, buf, buffer, del, delete, insert, modify, mutate, remove, replace, rm, splice, split |

## Links

- npm: https://www.npmjs.com/package/splice-buffer
- Repository: https://github.com/kevva/splice-buffer
- Homepage: https://github.com/kevva/splice-buffer#readme
- Issues: https://github.com/kevva/splice-buffer/issues
- npm.io page: https://npm.io/package/splice-buffer

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-08-16

## README

# splice-buffer [![Build Status](https://travis-ci.org/kevva/splice-buffer.svg?branch=master)](https://travis-ci.org/kevva/splice-buffer)

> Remove or replace part of a `Buffer` like `Array#splice`


## Install

```
$ npm install splice-buffer
```


## Usage

```js
const spliceBuffer = require('splice-buffer');

spliceBuffer('unicorn', 3, 4, 'verse');
//=> '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](http://github.com/kevva)

---
_Source: https://npm.io/package/splice-buffer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
