Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/math-utils/hamming-distance
Calculate the bit-wise hamming distance of two hex strings or buffers
https://github.com/math-utils/hamming-distance
Last synced: 10 days ago
JSON representation
Calculate the bit-wise hamming distance of two hex strings or buffers
- Host: GitHub
- URL: https://github.com/math-utils/hamming-distance
- Owner: math-utils
- License: mit
- Created: 2014-12-09T10:55:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T08:53:49.000Z (over 2 years ago)
- Last Synced: 2024-10-12T01:05:12.767Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 28
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hamming-distance
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]## Usage
```js
var compare = require('hamming-distance');var distance = compare(new Buffer('0000', 'hex'), new Buffer('000F', 'hex'));
```[gitter-image]: https://badges.gitter.im/math-utils/hamming-distance.png
[gitter-url]: https://gitter.im/math-utils/hamming-distance
[npm-image]: https://img.shields.io/npm/v/hamming-distance.svg?style=flat-square
[npm-url]: https://npmjs.org/package/hamming-distance
[github-tag]: http://img.shields.io/github/tag/math-utils/hamming-distance.svg?style=flat-square
[github-url]: https://github.com/math-utils/hamming-distance/tags
[travis-image]: https://img.shields.io/travis/math-utils/hamming-distance.svg?style=flat-square
[travis-url]: https://travis-ci.org/math-utils/hamming-distance
[coveralls-image]: https://img.shields.io/coveralls/math-utils/hamming-distance.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/math-utils/hamming-distance
[david-image]: http://img.shields.io/david/math-utils/hamming-distance.svg?style=flat-square
[david-url]: https://david-dm.org/math-utils/hamming-distance
[license-image]: http://img.shields.io/npm/l/hamming-distance.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/hamming-distance.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/hamming-distance
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
[gittip-url]: https://gratipay.com/jonathanong/