Socket
Socket
Sign inDemoInstall

turbo-crc32

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turbo-crc32

CRC32 generation using Slicing-by-N algorithm


Version published
Maintainers
1
Install size
9.40 kB
Created

Readme

Source

turbo-crc32

Build Status npm node license downloads Coverage Status

CRC32 generation using Slicing-by-N algorithm. CRC32 and CRC32C algorithms are supported.

Support

Buy Me A Coffee

Usage

const crc32 = require('turbo-crc32/crc32');
const crc32c = require('turbo-crc32/crc32c');

crc32('123456789')  // 0xcbf43926
crc32c('123456789') // 0xe3069283

// if you want signed integer
crc32('123456789') >> 0 // -873187034

API

  • crc32(input: Buffer|String): Number
  • crc32c(input: Buffer|String): Number

Benchmark

nodejs 10.14.1 / Ubuntu 16.04 x64

buffer-crc32:   1387.205ms
crc:            987.866ms
turbo-crc32:    447.711ms

License

MIT, 2018 (c) Dmitriy Tsvettsikh

Keywords

FAQs

Last updated on 15 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc