buffer-equal

WebJar for buffer-equal

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.substack
ArtifactId

ArtifactId

node-buffer-equal
Last Version

Last Version

0.0.1
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 node-buffer-equal

How to add to project

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

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
0.0.1