Download node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-crypto/sha256-browser/src/isEmptyData.ts
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts
-
curl -L -o isEmptyData.ts https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-crypto/sha256-browser/src/isEmptyData.ts
206 Bytes
| import { SourceData } from "@aws-sdk/types"; | |
| export function isEmptyData(data: SourceData): boolean { | |
| if (typeof data === "string") { | |
| return data.length === 0; | |
| } | |
| return data.byteLength === 0; | |
| } | |