🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@chainsafe/fast-crc32c

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/fast-crc32c - npm Package Compare versions

Comparing version
3.0.0
to
4.0.0
+5
impls/node_rs_crc32c.js
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 @@ ];

{
"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"
}
}

@@ -7,6 +7,2 @@ # fast-crc32c [![NPM version](https://badge.fury.io/js/fast-crc32c.svg)](http://badge.fury.io/js/fast-crc32c) [![Build Status](https://travis-ci.org/ashi009/node-fast-crc32c.svg?branch=master)](https://travis-ci.org/ashi009/node-fast-crc32c) [![Dependency Status](https://david-dm.org/ashi009/node-fast-crc32c.svg)](https://david-dm.org/ashi009/node-fast-crc32c) [![Coverage Status](https://coveralls.io/repos/github/ashi009/node-fast-crc32c/badge.svg?branch=master)](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,
};