Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lighter-crc32

lighterio1.1kISC1.0.0

A lightweight JavaScript CRC32 calculator.

lighter, crc32, hash, cyclic, redundancy, check, fast, lightweight, minimal, benchmark, speed, ops

readme

lighter-crc32

Chat Version Downloads Build Coverage Style

The lighter-crc32 module is a lightweight CRC32 calculator.

It supports:

  • Constructors (Type.prototype.init)
  • Prototypal inheritance (Type.extend)
  • Multiple inheritance (Type.decorate)
  • Non-enumerable property definitions (Type.hide)

Installation

From your project directory, install and save as a dependency:

npm install --save lighter-crc32

API

Just pass a string or buffer to the crc32 function to get a CRC32 integer.

var crc32 = require('lighter-crc32')
var a = crc32('String to hash')
var b = crc32(new Buffer('Buffer to hash'))

More on lighter-crc32...

changelog

lighter-crc32 Change Log

v1.0.0 - 2017-01-02

  • major Community release.