buffer-indexof-polyfill

This is a polyfill for Buffer#indexOf introduced in NodeJS 4.0.

MIT 3 个版本
安装
npm install buffer-indexof-polyfill
yarn add buffer-indexof-polyfill
pnpm add buffer-indexof-polyfill
bun add buffer-indexof-polyfill
README

buffer-indexof-polyfill

Build Status NPM Version NPM Downloads

This is a polyfill for Buffer#indexOf and Buffer#lastIndexOf introduced in NodeJS 4.0.

Example

require("buffer-indexof-polyfill");

new Buffer("buffer").indexOf("uff") // return 1
new Buffer("buffer").indexOf("abc") // return -1

Installation

npm install buffer-indexof-polyfill

License

MIT

版本列表
1.0.2 2020-09-09
1.0.1 2016-10-02
1.0.0 2015-10-12