https://github.com/victorqueiroz/cyclic-rc
No python, just pure and good C code performing some math with a Node.JS API
https://github.com/victorqueiroz/cyclic-rc
c crc nodejs
Last synced: 6 months ago
JSON representation
No python, just pure and good C code performing some math with a Node.JS API
- Host: GitHub
- URL: https://github.com/victorqueiroz/cyclic-rc
- Owner: VictorQueiroz
- License: mit
- Created: 2018-05-22T01:07:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T21:05:22.000Z (over 2 years ago)
- Last Synced: 2025-03-28T19:05:17.631Z (6 months ago)
- Topics: c, crc, nodejs
- Language: C++
- Size: 375 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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);
```