buffer-equal

WebJar for buffer-equal

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

buffer-equal
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

buffer-equal
WebJar for buffer-equal
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/substack/node-buffer-equal

Download buffer-equal

How to add to project

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

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-equal

Return whether two buffers are equal.

build status

example

var bufferEqual = require('buffer-equal');

console.dir(bufferEqual(
    new Buffer([253,254,255]),
    new Buffer([253,254,255])
));
console.dir(bufferEqual(
    new Buffer('abc'),
    new Buffer('abcd')
));
console.dir(bufferEqual(
    new Buffer('abc'),
    'abc'
));

output:

true
false
undefined

methods

var bufferEqual = require('buffer-equal')

bufferEqual(a, b)

Return whether the two buffers a and b are equal.

If a or b is not a buffer, return undefined.

install

With npm do:

npm install buffer-equal

license

MIT

Versions

Version
1.0.0
0.0.1