Download web/node_modules/fastq/example.mjs from Amitkumar001/Law_Slm: direct link, hf CLI and curl.
- Browser
- Download file 199 Bytes
-
https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/fastq/example.mjs
- Command line
-
hf download hf://Amitkumar001/Law_Slm/web/node_modules/fastq/example.mjs
-
curl -L -o example.mjs https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/fastq/example.mjs
199 Bytes
| import { promise as queueAsPromised } from './queue.js' | |
| const queue = queueAsPromised(worker, 1) | |
| console.log('the result is', await queue.push(42)) | |
| async function worker (arg) { | |
| return 42 * 2 | |
| } | |