A simple command line utilities library for nodejs apps
npm install @lsipii/commandline-helpers
Example:
import { Logger, CommandlineUtils, Runtime } from "@lsipii/commandline-helpers";
const logger = new Logger()
const message = CommandlineUtils.getFirstArgument("Example output");
logger.log(message);
Runtime.delay(2000).then(() => {
logger.log(`${message}: after delay`);
})
For basic examples see ./scripts/test-arguments.ts