Package Exports
- crc16-ccitt-node
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crc16-ccitt-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 --saveContoh
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