# rise-cli-foundation

> ## Install

Latest version **0.0.14** (published 2023-01-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install rise-cli-foundation
pnpm add rise-cli-foundation
yarn add rise-cli-foundation
bun add rise-cli-foundation
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2023-01-15 |
| First published | 2021-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | garysjennings |

## Links

- npm: https://www.npmjs.com/package/rise-cli-foundation
- npm.io page: https://npm.io/package/rise-cli-foundation

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^9.4.1

## Recent versions

- 0.0.14 (latest) — 2023-01-15
- 0.0.13 — 2023-01-14
- 0.0.12 — 2023-01-14
- 0.0.11 — 2023-01-14
- 0.0.10 — 2022-06-21
- 0.0.9 — 2022-06-20
- 0.0.8 — 2022-06-19
- 0.0.7 — 2022-06-19
- 0.0.6 — 2022-06-19
- 0.0.5 — 2022-06-19
- 0.0.4 — 2022-06-18
- 0.0.3 — 2021-12-06
- 0.0.2 — 2021-12-06
- 0.0.1 — 2021-12-06

## README

# Rise CLI Foundation

## Install

```
npm i rise-cli-foundation
```

### Example CLI Program

```js
#! /usr/bin/env node
import * as cli from 'rise-cli-foundation'
const flags = [
    {
        flag: '--stage',
        default: 'dev'
    }
]

cli.addCommand({
    command: 'deploy',
    flags,
    action: async (flags) => {
        const stage = flags.stage
        terminal.printInfoMessage('stage: ' + stage)
    }
})

cli.runProgram()
```

### Logging

```js
import * as cli from 'rise-cli-foundation'

let text = cli.makeGreenText('text')
let text = cli.makeBlueText('text')
let text = cli.makeRedText('text')
let text = cli.makeDimText('text')
let text = cli.setTextWidth('text', 20)
cli.print(text)

cli.clear()
cli.hideCursor()
cli.showCursor()

cli.printErrorMessage('A Error Message')
cli.printInfoMessage('A Info Message')
cli.printSuccessMessage('A Success Message')

cli.startLoadingMessage('Something is happening')
cli.endLoadingMessage()
```

---
_Source: https://npm.io/package/rise-cli-foundation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
