This repository was archived by the owner on Jan 23, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1
Node.js `buffer.includes()` ponyfill
License
NotificationsYou must be signed in to change notification settings
sindresorhus/buffer-includes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Just useBuffer#includes()
. It has been available since Node.js 6.
Node.js
buffer.includes()
ponyfill
$ npm install --save buffer-includes
constbufferIncludes=require('buffer-includes');bufferIncludes(newBuffer('unicorn'),'corn');//=> true
See thebuffer.includes()
docs for more details.
- buf-indexof - Node.js
buffer.indexOf()
ponyfill - buffer-equals - Node.js
buffer.equals()
ponyfill - buf-compare - Node.js
Buffer.compare()
ponyfill
MIT ©Sindre Sorhus
About
Node.js `buffer.includes()` ponyfill
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published