Download next.js/packages/next/src/server/api-utils/web.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/api-utils/web.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/server/api-utils/web.ts
-
curl -L -o web.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/api-utils/web.ts
219 Bytes
| // Buffer.byteLength polyfill in the Edge runtime, with only utf8 strings | |
| // supported at the moment. | |
| export function byteLength(payload: string): number { | |
| return new TextEncoder().encode(payload).buffer.byteLength | |
| } | |