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-WD05vd/BOxW7AumfZvX40Cy3j5QbpB18zezrm3i3llfs4Q1WNiiSQ+BVIkWDdrdOxIKX9jNZBzWf8Lsd1JkkbA==",
"shasum": "92b5aa66ce6b996a34ee8ab7f68d6db2e79f484d",
"tarball": "https://registry.npmjs.org/5um/-/5um-4.0.2.tgz",
"fileCount": 6,
"unpackedSize": 15383,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQDD5aHY3o1MjsNXXlIOjjLyAvX40FP1FUW5Z5o72XiC9gIhAPpureyQH8eryVwkNHvyqMeLpjHaW3kUISMFjD6oJdZj"
}
]
}Observed since 20 Oct, 20:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:455b0ed817d95a4a313cb5cfea657997e107763a7d3a9a3454abde2e34fcfcac