🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@node-rs/crc32

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-rs/crc32

SIMD crc32

Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
561K
-1.34%
Maintainers
1
Weekly downloads
 
Created
Source

@node-rs/crc32

Fastest crc32 implement in NodeJS

Support matrix

node 10node12node13node14
Windows 64 latest
macOS latest
Linux

API

export function crc32(input: Buffer, crc?: number): number
export function crc32c(input: Buffer, crc?: number): number

Usage

const { crc32 } = require('@node-rs/crc32')
const { readFileSync } = require('fs')

const content = readFileSync('./avatar.png')

crc32(content)

Keywords

SIMD

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

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