@chainsafe/fast-crc32c
Advanced tools
| const bindings = require('@node-rs/crc32'); | ||
| module.exports = { | ||
| calculate: bindings.crc32c, | ||
| }; |
+1
-1
| module.exports = (function() { | ||
| const impls = [ | ||
| './impls/sse4_crc32c', | ||
| './impls/node_rs_crc32c', | ||
| './impls/js_crc32c', | ||
@@ -5,0 +5,0 @@ ]; |
+15
-10
| { | ||
| "name": "@chainsafe/fast-crc32c", | ||
| "description": "CRC32C algorithm with hardware acceleration and software fallback.", | ||
| "version": "3.0.0", | ||
| "version": "4.0.0", | ||
| "author": "Xiaoyi Shi <ashi009@gmail.com>", | ||
@@ -9,12 +9,17 @@ "license": "MIT", | ||
| "type": "git", | ||
| "url": "git://github.com/ashi009/node-fast-crc32c.git" | ||
| "url": "git@github.com:ChainSafe/node-fast-crc32c.git" | ||
| }, | ||
| "main": "./loader", | ||
| "files":[ | ||
| "loader.js", | ||
| "impls/*.js" | ||
| ], | ||
| "optionalDependencies": { | ||
| "@node-rs/crc32": "1.1.0" | ||
| "@node-rs/crc32": "^1.6.0" | ||
| }, | ||
| "scripts": { | ||
| "test": "nyc --reporter=html --reporter=text mocha", | ||
| "test:unit": "nyc --reporter=html --reporter=text mocha test/unit/*.test.js", | ||
| "test:mem": "node test/mem/mem_test.test.js", | ||
| "coverage": "nyc report --reporter=text-lcov | coveralls", | ||
| "benchmark": "node benchmark" | ||
| "benchmark": "benchmark test/perf/benchmark.test.js" | ||
| }, | ||
@@ -30,11 +35,11 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "benchtable": "^0.1.0", | ||
| "@dapplion/benchmark": "^0.2.4", | ||
| "sse4_crc32": "^7.0.0", | ||
| "buffer-crc32": "^0.2.13", | ||
| "chai": "^4.3.7", | ||
| "coveralls": "^3.0.6", | ||
| "mocha": "^6.2.1", | ||
| "mocha": "^10.0.0", | ||
| "nyc": "^14.1.1", | ||
| "random-string": "^0.2.0", | ||
| "should": "^13.2.3", | ||
| "sse4_crc32": "^6.0.1" | ||
| "random-string": "^0.2.0" | ||
| } | ||
| } |
+0
-4
@@ -7,6 +7,2 @@ # fast-crc32c [](http://badge.fury.io/js/fast-crc32c) [](https://travis-ci.org/ashi009/node-fast-crc32c) [](https://david-dm.org/ashi009/node-fast-crc32c) [](https://coveralls.io/github/ashi009/node-fast-crc32c?branch=master) | ||
| ### Notice | ||
| > This is fork with replaced sse4_crc32 to @node-rs/crc32 to enable apple m1 chips to work | ||
| ## Performance | ||
@@ -13,0 +9,0 @@ |
| const bindings = require('@node-rs/crc32'); | ||
| module.exports = { | ||
| calculate: bindings.crc32c, | ||
| }; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
9295
0.61%64
-5.88%1
Infinity%