1.3.1 • Published 12 months ago
@d-zero/dealer v1.3.1
Dealer
Dealer is an API and CLI that processes a given collection in parallel and logs the output in sequence to the standard output.
Install
npm install @d-zero/dealerAPI
import { deal } from '@d-zero/dealer';
await deal(items, {
limit: 30,
header: (progress, done, total, limit) =>
progress === 1
? 'HeaderMessage: Done!'
: `HeaderMessage: %earth% %dots% %block% %propeller%`,
setup: (item, update, index) => {
item.setup();
item.addListeners((state) => {
update(`item(${index}): ${state}`);
});
return async () => {
await item.start();
item.cleanup();
};
},
});1.3.1
12 months ago
1.3.0
1 year ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago