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-fTGd6Kh7NY00WysWvTIa8e+nHXUlKQ/yhUwXU/ILoDKBPNq3uasouQLdWpHRJXzLeKLKloIUvXX0IRLHKW2KlA==",
"shasum": "753262f9e0924f94c5c73aa1992906f1ad83352f",
"tarball": "https://registry.npmjs.org/5um/-/5um-2.0.2.tgz",
"fileCount": 9,
"unpackedSize": 86289,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIG6zHWhJYOcYoeDogiOttoTt1D88g7tV3/3Ocu6yZbNhAiEAvAFaH4S/JxvDodvnp75u+Bp6b5jqftGeo4CQ965mWG8="
}
]
}Observed since 20 Oct, 20:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:403b1adee2f83704dab0c28f9635e5837526464f74ae722edf053e52da4f611c