buffer-equal
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

buffer-equal

return whether two buffers are equal

1.0.0  •  Updated 4 years ago  •  by James Halliday  •  MIT License

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

Popularity

Weekly Downloads
1.6M
Stars
20

Maintenance

Development

Last ver 4 years ago
Created 8 years ago
Last commit 4 years ago
6 months between commits

Technology

Node version: 4.2.1
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

2 contributors
James Halliday
Maintainer, 10 commits
Works at bits.coop
Feross Aboukhadijeh
1 commits, 1 PRs
Works at WebTorrent, Standard
n074v41l4bl34u
1 PRs
diocles
1 PRs
LinusU
1 PRs
ScottWeinstein
1 PRs

Dependencies

Tags

buffer
equal
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.