JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q64566F

Package Exports

  • cyclic-rc
  • cyclic-rc/index.js

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 (cyclic-rc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cyclic-rc

libcrc bindings for Node.JS, a very simple CRC library written completely in C.

Installation

All you need is a valid C compiler installed in your computer

yarn add cyclic-rc

Usage

All API methods matches the original C library. Check example bellow:

const crc = require('cyclic-rc');

const n = 'string';

let crc8 = crc.crc_8(n);
let crc16 = crc.crc_16(n);
let crc32 = crc.crc_32(n);
let crc64_ecma = crc.crc_64_ecma(n);
let crc64_we = crc.crc_64_we(n);
let crcdnp = crc.crc_dnp(n);
let crcmodbus = crc.crc_modbus(n);
let crcsick = crc.crc_sick(n);
let crcxmodem = crc.crc_xmodem(n);
let crc1d0f = crc.crc_ccitt_1d0f(n);
let crcffff = crc.crc_ccitt_ffff(n);
let crckermit = crc.crc_kermit(n);