Spaces:
Sleeping
Sleeping
Download src/utils/sha256.ts from NSMP/NSMP-Server: direct link, hf CLI and curl.
- Browser
- Download file 162 Bytes
-
https://huggingface.co/spaces/NSMP/NSMP-Server/resolve/main/src/utils/sha256.ts
- Command line
-
hf download hf://spaces/NSMP/NSMP-Server/src/utils/sha256.ts
-
curl -L -o sha256.ts https://huggingface.co/spaces/NSMP/NSMP-Server/resolve/main/src/utils/sha256.ts
162 Bytes
| import { createHash } from "node:crypto"; | |
| export function sha256(input: string | Buffer): string { | |
| return createHash("sha256").update(input).digest("hex"); | |
| } |