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-8r9DT77+YeTDWOcb8/56nqpu0AGUzgjQ4XP/WOG/rCeQisZri4c4ccvrrHEYucphjDTE3wKOQYaDyjnDvsF6oQ==",
"shasum": "43d0de0eb2df3cc9f86bedfaa5c9a7425bdfa218",
"tarball": "https://registry.npmjs.org/5um/-/5um-4.0.10.tgz",
"fileCount": 9,
"unpackedSize": 16367,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCICRg1MeBjJZs+b5hPB+lVubwwDO719I6KyAI/sfhUHQWAiEAmrEkXra3omsRR8LHQ4FD/GAvToUjf91A9ya2CD2mAnw="
}
]
}Observed since 20 Oct, 20:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:6191ac04b989b44a8aefba624bf10b0cb3669e5a401b46705e4bea68c36ebafb