Calculates the 16-bit cyclic redundancy check (CRC) used in IrDA & PPP
npm install crc-16>Calculates the 16-bit cyclic redundancy check (CRC) used in IrDA & PPP.
```
$ npm install --save get-port
`js
// For node@4.4
var crc16 = require('crc-16');
// Calculate the CRC of a simple two-byte buffer
var buf = new Buffer([0x00, 0x00]);
var crc = crc16(buf);
console.log('crc:', crc);
//=> crc:
``
MIT