You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

crc

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crc

Module for calculating Cyclic Redundancy Check (CRC) for Node.js and the browser.

4.3.2
latest
Source
npmnpm
Version published
Weekly downloads
2.5M
-2.3%
Maintainers
1
Weekly downloads
 
Created

What is crc?

The crc npm package is used for generating cyclic redundancy check (CRC) codes for various input data. CRC is a popular method for detecting accidental changes to raw data in digital networks and storage devices. The package supports multiple CRC algorithms and can be used in various applications where data integrity is crucial.

What are crc's main functionalities?

CRC32 Calculation

This feature allows the calculation of CRC32 checksum for the input string 'hello world'. It is useful for verifying the integrity of strings or files.

const crc = require('crc');
const result = crc.crc32('hello world');
console.log('CRC32:', result);

CRC16 Calculation

This feature computes the CRC16 checksum for the given string. It's commonly used in telecommunications and storage for error-checking.

const crc = require('crc');
const result = crc.crc16('hello world');
console.log('CRC16:', result);

CRC1 Calculation

This feature calculates a simple CRC1 checksum, which can be used for basic error detection in scenarios where minimal data corruption checks are needed.

const crc = require('crc');
const result = crc.crc1('hello world');
console.log('CRC1:', result);

Other packages similar to crc

Keywords

crc

FAQs

Package last updated on 31 Jan 2023

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