Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 24, 2024 via pnpm

crc-32 1.2.2

Pure-JS CRC-32
Package summary
Share
0
issues
1
license
1
Apache-2.0
Package created
16 Jun 2014
Version published
4 Apr 2022
Maintainers
1
Total deps
1
Direct deps
0
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
crc-32@1.2.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of crc-32 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does crc-32 do?

The crc-32 npm package is a standard CRC-32 algorithm implementation in JavaScript. This package, which is usable in both browsers and Node.js, focuses on ensuring correctness, performance, and support for IE6 and above. CRC-32 is widely used in networking protocols and file archives for checking the integrity of data.

How do you use crc-32?

The usage of crc-32 in your JavaScript project is relatively straight forward. Firstly, the package needs to be installed using npm, as shown below:

$ npm install crc-32

After successful installation, it can be integrated into your project depending on the environment. In a Node.js or bundler, it can be used as:

var CRC32 = require("crc-32");

For browser usage, the crc32.js script can be included directly in the HTML file:

<script src="crc32.js"></script>

The package provides several functions to compute the CRC-32 checksum. Examples of usage can be seen below:

// var CRC32 = require('crc-32');               // uncomment this line if in node
CRC32.str("SheetJS")                            // -1647298270
CRC32.bstr("SheetJS")                           // -1647298270
CRC32.buf([ 83, 104, 101, 101, 116, 74, 83 ])   // -1647298270

Where are the crc-32 docs?

The crc-32 package's documentation can be found within the README file provided in the GitHub repository git://github.com/SheetJS/js-crc32.git. This includes the installation guide, integration steps, and usage examples which are discussed above. It also provides best practices, testing methodologies, performance insights, and licensing information.