UNPKG

node-enocean-crc8

Version:

crc8 calculation as defined by the Enocean Serial Protocol Specefiation (ESP3)

15 lines (11 loc) 634 B
![Travis (.org)](https://img.shields.io/travis/node-enocean/node-enocean-crc8.svg) ![Code Climate coverage](https://img.shields.io/codeclimate/coverage/node-enocean/node-enocean-crc8.svg) ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/node-enocean/node-enocean-crc8.svg) ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/node-enocean/node-enocean-crc8.svg) # node-enocean-crc8 ## install npm i -S node-enocean-crc8 ## usage const getCRC8 = require('node-enocean-crc8') var buf = Buffer.from([0x0, 0x1, 0x0, 0x5]) console.log(getCRC8(buf)) // prints 112