Current collected state Current
Observed since 20 Oct, 20:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
5um
A 'hash' function module for Node.js written in C.
Fast "hash" algorithm designed for insecure hashing usage.
Sometimes you need a fast hash but you don't care about the security of the hash.
npm install 5um
gcc -o ./node_modules/5um/dist/c/hash5um.so -shared -fPIC ./node_modules/5um/src/c/hash5um.c
npx 5um hello.txt
const hash5um = require("5um");
const inputFile = process.argv[2];
const hash = hash5um('./hello.txt'); // returns a BigInt
console.log(hash.toString(16));
// npm install --save-dev @types/ffi-napi
import hash5um from "5um";
const inputFile = process.argv[2];
const hash = hash5um('./hello.txt'); // returns a BigInt
console.log(hash.toString(16));
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
ffi-napiEnvironment{
"local_name": "ffi-napi",
"alias": false,
"peer_metadata": null
} | ^4.0.3 | runtime |
@types/ffi-napiEnvironment{
"local_name": "@types/ffi-napi",
"alias": false,
"peer_metadata": null
} | ^4.0.7 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^20.4.9 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.1.6 | development |
Source distribution
{
"integrity": "sha512-zHIaEp4/XrCp568sxtklDr2Slj2oNgoaQT9nUcK97FHtD1liqi8cMvs2k4Vhd0K3rpStj+WJc7axzpUhgj6E0Q==",
"shasum": "2a56c0cb948d6dcb9e3b480a07ae9928bc7f29ac",
"tarball": "https://registry.npmjs.org/5um/-/5um-4.0.11.tgz",
"fileCount": 9,
"unpackedSize": 86350,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIG74cJCAxwyOHah3ufG6D4ViItVEjPredWcp2R4CcMqYAiEA7XP/Vg6v1rktJXTZC5EvO/WY+K61DHCgTGROKdDyTAA="
}
]
}Observed since 20 Oct, 20:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:87d8003756e8d37bec0db0a9e15ab7ca91461ebcc4a87debee942e879db6e372