Spaces:
Running
Running
Download node_modules/fastq/example.mjs from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/fastq/example.mjs
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/fastq/example.mjs
-
curl -L -o example.mjs https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/fastq/example.mjs
221 Bytes
| import { promise as queueAsPromised } from './queue.js' | |
| /* eslint-disable */ | |
| const queue = queueAsPromised(worker, 1) | |
| console.log('the result is', await queue.push(42)) | |
| async function worker (arg) { | |
| return 42 * 2 | |
| } | |