JSPM

crc16-ccitt-node

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 82
  • Score
    100M100P100Q77523F
  • License MIT

Fungsi untuk mendapatkan nilai error cek atau checksum dengan algoritma crc-16 atau crc-ccitt atau crc-itu

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 --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