Download Goat-Bot-V2/node_modules/@aws-crypto/util/src/isEmptyData.ts from sweet2004/mitaaaa: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40aws-crypto/util/src/isEmptyData.ts
- Command line
-
hf download hf://spaces/sweet2004/mitaaaa/Goat-Bot-V2/node_modules/@aws-crypto/util/src/isEmptyData.ts
-
curl -L -o isEmptyData.ts https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40aws-crypto/util/src/isEmptyData.ts
315 Bytes
| // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| import { SourceData } from "@aws-sdk/types"; | |
| export function isEmptyData(data: SourceData): boolean { | |
| if (typeof data === "string") { | |
| return data.length === 0; | |
| } | |
| return data.byteLength === 0; | |
| } | |