Socket
Socket
Sign inDemoInstall

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.


Version published
Maintainers
1
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

FAQs

Package last updated on 19 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc