Common Server

Summary

Utilities for nodejs environment

Utilities

  • express.js related utilties
    • loc: server
  • files
    • loc: filesv2
  • logging
    • loc: logger
  • os related stats
    • loc: system
  • 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