/hamming-distance

Calculate the bit-wise hamming distance of two hex strings or buffers

Primary LanguageJavaScriptMIT LicenseMIT

hamming-distance

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Usage

var compare = require('hamming-distance');

var distance = compare(new Buffer('0000', 'hex'), new Buffer('000F', 'hex'));