Skip to content

hashtagify/node-redis-crc16

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-redis-crc16

crc16 CCIT Xmodem hash which working properly with redis-cluster

Forked from: crc-itu Build Status

Install:

npm install node-redis-crc16 --save

Usage:

var crc16 = require('node-redis-crc16').crc16;

// with string and encoding
var ret = crc16('0d0103588990501766460026', 'hex');
console.log(ret.toString(16)); // e7a5

// with buffer
var buff = new Buffer('0d0103588990501766460026', 'hex');
var ret = crc16(buff);
console.log(ret.toString(16)); // e7a5

About

CRC16-ITU (CRC16-CCIT) for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 82.1%
  • JavaScript 15.6%
  • Python 2.3%