Download node_modules/get-stream/source/utils.js from Snapkitty/sovereign-apollo: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/get-stream/source/utils.js
- Command line
-
hf download hf://Snapkitty/sovereign-apollo/node_modules/get-stream/source/utils.js
-
curl -L -o utils.js https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/get-stream/source/utils.js
346 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; | |