![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Basic C modules for NodeJS with crc32c (Castagnoli) implementation for Linux. The implementation uses the native Linux library "AF_ALG".
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.
##Building
node-gyp configure build
or
npm install crc32c
##Usage
You have the function compute
, which takes only one argument, the string to hash.
From JavaScript:
var crc32c = require('crc32c');
// Works with strings!
var toHash = "HELLOWORLD";
console.log(crc32c.compute(toHash));
// Or buffers!
console.log(crc32c.compute(new Buffer('{"jsonString":"property1","jsonArray":["arr1","arr2","arr3"]}')));
// Or String Objects!
console.log(crc32c.compute(new String('A superb string!')));
With >100 iterations I get a 3x perf improvements. It really shows up at more than 10K iterations though.
You have to create an object called a Batcher. This object then has 3 methods: openSocket
, closeSocket
, and compute
.
From JavaScript:
var crc32c = require('crc32c');
var Batcher = new crc32c.Batcher(); // You can create as many as you want. Every instance will use a single socket.
var Batcher.openSocket();
console.log(Batcher.compute(new Buffer('{"jsonString":"property1","jsonArray":["arr1","arr2","arr3"]}')));
// ... Iterate on many strings/buffer/etc.
Batcher.closeSocket();
From cli:
crc32c <filename>
It currently supports only one file at the time.
##License
The plugin is under MIT license, please see the LICENSE file provided with the module.
Run the script node benchmarks/benchmarks.js
!
Soon more info.
0.4.0
FAQs
CRC32C C implementation for Linux. Supports strings, String Objects and Buffers!
The npm package crc32c receives a total of 3 weekly downloads. As such, crc32c popularity was classified as not popular.
We found that crc32c demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.