New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crc32c

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crc32c - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

bin/crc32c-cli.js

14

package.json
{
"name": "crc32c",
"version": "0.1.4",
"description": "CRC32C c implementation for Linux.",
"version": "0.2.0",
"description": "CRC32C C implementation for Linux.",
"keywords": ["crc", "crc32", "crc32c", "hash", "castagnoli" ],

@@ -14,2 +14,12 @@ "author": "Hugo Dozois <hugo@dozoisch.com>",

},
"bin": { "crc32c": "./crc32c.js" },
"files": [
"LICENSE",
"README.md",
"src",
"test",
"binding.gyp",
"crc32c.js",
"bin/crc32c-cli.js"
],
"engines": {

@@ -16,0 +26,0 @@ "node": ">= 0.10.0"

Node-crc32c
===========
Basic c modules for NodeJS with crc32c (castagnoli) implementation for Linux.
Basic C modules for NodeJS with crc32c (Castagnoli) implementation for Linux. The implementation uses the native Linux library "AF\_ALG".

@@ -18,2 +18,3 @@ This module is not meant for secure hashing but really for something like ETags or anything that is easier to compare using a hash than the full string.

From JavaScript:
```javascript

@@ -27,2 +28,7 @@ var crc32c = require('crc32c');

From cli:
```shell
crc32c <filename>
```
*It currently supports only one file at the time.*

@@ -29,0 +35,0 @@ ##License

2

test/test.js
var crc32c = require('../bin/crc32c');
console.log(crc32c.compute('hello'));
console.log(crc32c.compute('hello\n'));
console.log(crc32c.compute('{"jsonString":"property1","jsonArray":["arr1","arr2","arr3"]}'));
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