buffer-indexof

WebJar for buffer-indexof

Лицензия

Лицензия

MIT
Категории

Категории

Dex Универсальные библиотеки Utility
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

buffer-indexof
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

buffer-indexof
WebJar for buffer-indexof
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/soldair/node-buffer-indexof

Скачать buffer-indexof

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/buffer-indexof/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>buffer-indexof</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/buffer-indexof/
implementation 'org.webjars.npm:buffer-indexof:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/buffer-indexof/
implementation ("org.webjars.npm:buffer-indexof:1.1.1")
'org.webjars.npm:buffer-indexof:jar:1.1.1'
<dependency org="org.webjars.npm" name="buffer-indexof" rev="1.1.1">
  <artifact name="buffer-indexof" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='buffer-indexof', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "buffer-indexof" % "1.1.1"
[org.webjars.npm/buffer-indexof "1.1.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Build Status

buffer-indexof

find the index of a buffer in a buffer. should behave like String.indexOf etc.

var bindexOf = require('buffer-indexof');

var newLineBuffer = new Buffer("\n");

var b = new Buffer("hi\nho\nsilver");


bindexOf(b,newLineBuffer) === 2

// you can also start from index

bindexOf(b,newLineBuffer,3) === 5

// no match === -1

bindexOf(b,newLineBuffer,6) === -1

CHANGELOG

  • 1.0.0
    • fixed issue finding multibyte needles in haystack. thanks @imulus
  • 1.0.1
    • fixed failing to find partial matches as pointed out by @bahaa-aidi in #2

Версии библиотеки

Версия
1.1.1