Spaces:
Running
Running
Download node_modules/fastq/example.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/fastq/example.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/fastq/example.js
-
curl -L -o example.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/fastq/example.js
238 Bytes
| /* eslint-disable no-var */ | |
| var queue = require('./')(worker, 1) | |
| queue.push(42, function (err, result) { | |
| if (err) { throw err } | |
| console.log('the result is', result) | |
| }) | |
| function worker (arg, cb) { | |
| cb(null, 42 * 2) | |
| } | |