Common Server
Summary
Utilities for nodejs environment
Utilities
- express.js related utilties
- loc:
server
- loc:
- files
- loc:
filesv2
- loc:
- logging
- loc:
logger
- loc:
- os related stats
- loc:
system
- loc:
- exports execa
General Utilties
asyncLoopOneAtATime
Loop through iterable one element at a time and perform async task
Example:
// this creates directories 'one' and 'two'
await asyncLoopOneAtATime<string>(["one", "two"], (ent) => {
return fs.ensureDir(ent);
});
Backlinks