buffer-equals

WebJar for buffer-equals

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

buffer-equals
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

buffer-equals
WebJar for buffer-equals
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/buffer-equals

Download buffer-equals

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

buffer-equals Build Status

Node.js buffer.equals() ponyfill

Deprecated: Just use Buffer#equals(). It has been available since Node.js 0.12.

Install

$ npm install --save buffer-equals

Usage

const bufferEquals = require('buffer-equals');

bufferEquals(new Buffer('foo'), new Buffer('foo'));
//=> true

bufferEquals(new Buffer('foo'), new Buffer('bar'));
//=> false

API

See the buffer.equals() docs.

The only difference is that you pass in the buffer as the first argument instead of calling the .equals() method on the buffer instance.

Related

License

MIT © Sindre Sorhus

Versions

Version
1.0.4