cmd-ops
v1.0.1
Published
Operators for command.
Downloads
14
Readme
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
import { print } from 'cmd-ops'
print('Hello {red|World}!')