buffer-compare
Lexicographically compare two buffers.
Last updated 11 years ago by soldair .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install buffer-compare 
SYNC missed versions from official npm registry.

Build Status

buffer-compare

Lexicographically compare two buffers.

  var compare = require('buffer-compare');

  // smaller
  compare(new Buffer('abcd'),new Buffer(abcde)) === -1

  // bigger
  compare(new Buffer('abcdef'),new Buffer('abc')) === 1

  // equal
  compare(new Buffer('hi'),new Buffer('hi')) === 0

Current Tags

  • 1.1.1                                ...           latest (9 years ago)

4 Versions

  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE