Skip to content

KarlosQ/node-crc-itu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-crc-itu npm version PRs Welcome

Install:

Using yarn

yarn add node-crc-itu 

Or

Using npm

npm install --save node-crc-itu 

Usage:

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

// with string
var ret = crc16('0d0103588990501766460026');
console.log(ret); // 7bf9

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

// with string without encoding output
var ret = crc16('0d0103588990501766460026', { encodingOutput: false });
console.log(ret.toString(16)); // 7bf9

About

crc-itu 16 bits pure node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published