Socket
Socket
Sign inDemoInstall

cmd-ops

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cmd-ops

Operators for command.


Version published
Weekly downloads
6
decreased by-60%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.1 (2024-04-18)

Features

  • add reporter/progress stop (5638208)

Readme

Source

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}!')

Keywords

FAQs

Last updated on 18 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc