⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
async-each
/
Edit File: README.md
# async-each No-bullshit, ultra-simple, 40-lines-of-code async parallel forEach function for JavaScript. We don't need junky 30K async libs. Really. For browsers and node.js. ## Usage `npm install async-each` if you're using NPM. For browsers, just include async-each before your scripts and use global variable `asyncEach` * `each(array, iterator, callback)` — `Array`, `Function`, `(optional) Function` * `iterator(item, next)` receives current item and a callback that will mark the item as done. `next` callback receives optional `error, transformedItem` arguments. * `callback(error, transformedArray)` optionally receives first error and transformed result `Array`. ```javascript var each = require('async-each'); each(['a.js', 'b.js', 'c.js'], fs.readFile, function(error, contents) { if (error) console.error(error); console.log('Contents for a, b and c:', contents); }); asyncEach(list, fn, callback); // use global var in browser ``` ## License The MIT License (MIT) Copyright (c) 2016 Paul Miller [(paulmillr.com)](https://paulmillr.com) See [LICENSE](https://github.com/paulmillr/async-each/blob/master/LICENSE) file.
Simpan