Download web/node_modules/fastq/example.js from Amitkumar001/Law_Slm: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/fastq/example.js
- Command line
-
hf download hf://Amitkumar001/Law_Slm/web/node_modules/fastq/example.js
-
curl -L -o example.js https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/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) | |
| } | |