node_crc_native

Native node addon to calculate CRC16 values

Usage no npm install needed!

<script type="module">
  import nodeCrcNative from 'https://cdn.skypack.dev/node_crc_native';
</script>

README

node-crc-native

Native node addon to calculate CRC.

NOTE

Compatibility node 15. Tested on 15.3.0 "napi"

Usage

var CRC16 = require('crc16');
console.log(CRC16('03010b'));
console.log(crc("aaff010fa90be507ad"));
console.log(crc(new Buffer.from('03010b',"hex")));
console.log(crc("1af3e8b4c4d8","hex").toString(16));

Installation

npm i node_crc_native --save

License

APACHE-2.0