Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

lsipii/commandline-helpers

Repository files navigation

commandline-helpers

A simple command line utilities library for nodejs apps

Install

npm install @lsipii/commandline-helpers

Usage

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`);
})

Examples

For basic examples see ./scripts/test-arguments.ts

About

Command-line utilities for nodejs apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published