cmd-ops
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

cmd-ops

Operators for command.

progress

  • Progress
import { Progress } from 'cmd-ops'

const progress = new Progress({
  title: 'Task...',
  total: 100,
})

progress.update(10);

progress.end()

reporter

  • Reporter
import { Reporter } from 'cmd-ops'

const reporter = new Reporter();

reporter.write('Hello World!')

style

  • getStyleText
import { getStyleText, Style } from 'cmd-ops'

console.log(getStyleText(`Hello {${Style.red}|World}!`))

utils

  • print
import { print } from 'cmd-ops'

print('Hello {red|World}!')

/cmd-ops/

    Package Sidebar

    Install

    npm i cmd-ops

    Weekly Downloads

    15

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    17.1 kB

    Total Files

    17

    Last publish

    Collaborators

    • yujinpan