这是indexloc提供的服务,不要输入任何密码
Skip to content

Salakar/crc-itu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crc-itu Build Status

Install:

npm install crc-itu

Usage:

var crc16 = require('crc-itu').crc16;

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

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.4%
  • JavaScript 22.2%
  • Python 2.4%