Download web/node_modules/get-stream/source/utils.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/node_modules/get-stream/source/utils.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/node_modules/get-stream/source/utils.js
-
curl -L -o utils.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/node_modules/get-stream/source/utils.js
335 Bytes
| export const identity = value => value; | |
| export const noop = () => undefined; | |
| export const getContentsProp = ({contents}) => contents; | |
| export const throwObjectStream = chunk => { | |
| throw new Error(`Streams in object mode are not supported: ${String(chunk)}`); | |
| }; | |
| export const getLengthProp = convertedChunk => convertedChunk.length; | |