Comparing version 0.1.4 to 0.2.0
{ | ||
"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 |
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"]}')); |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6607
10
21
36
1
1