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

Package detail

crc64-ecma

akiver742GPL-2.02.0.0TypeScript support: included

Calculate CRC64/XZ hashes for NodeJS.

crc, crc64, crc64/xz

readme

crc64-ecma

Calculate CRC64/XZ hashes for NodeJS.

The module name is crc64-ecma but it uses the CRC64/XZ algorithm.

Installation

npm install crc64-ecma

Usage

import { crc64 } from 'crc64-ecma';

const data = 'Hello';
const crc = crc64(data);
// Output: 51cf5c3bc87bacc8
console.log(crc.toString(16));

License

GPL v2