1.0.6 • Published 3 years ago

crc16-ccitt-node v1.0.6

Weekly downloads
265
License
MIT
Repository
github
Last release
3 years ago

crc16-ccitt-node

Fungsi untuk mendapatkan nilai Error Check atau Checksum dengan algoritma CRC-ITU kadang juga disebut CRC16-CCITT

Instalasi

Instal dengan npm :

npm install crc16-ccitt-node --save

Contoh

let crc = require('crc16-ccitt-node');
let buffData = Buffer.from('ff7878', 'hex');

console.log("string hex : %s ", crc.getCrc16(buffData).toString(16));
// string hex : c1f4

console.log("decimal : %d ", crc.getCrc16(buffData));
// decimal : 49652