# prettycli

> Pretty print messages on the terminal

Latest version **1.4.3** (published 2017-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install prettycli
pnpm add prettycli
yarn add prettycli
bun add prettycli
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.3 |
| Published | 2017-08-27 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 50 |
| Author | siddharthkp |
| Maintainers | siddharthkp |

## Links

- npm: https://www.npmjs.com/package/prettycli
- Repository: https://github.com/siddharthkp/prettycli
- Issues: https://github.com/practo/prettycli/issues
- npm.io page: https://npm.io/package/prettycli

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) 2.1.0

## Recent versions

- 1.4.3 (latest) — 2017-08-27
- 1.4.2 — 2017-08-08
- 1.4.1 — 2017-07-30
- 1.4.0 — 2017-06-27
- 1.3.0 — 2017-05-30
- 1.2.0 — 2017-05-12
- 1.1.0 — 2017-05-12
- 1.0.1 — 2017-02-28
- 1.0.0 — 2017-02-28

## README

<p align="center">
  <img src="https://raw.githubusercontent.com/siddharthkp/prettycli/master/screenshot.png"/>
  <br><br>
  <b>Pretty print messages on the terminal</b>
  <br><br>
</p>

####  Usage

```js

// Require what you need from prettycli

const {info, warn} = require('prettycli');

/*

  There are 6 functions:

  Print to stdout:
  1. info: (label, message)
  2. loading: (label, message)
  3. warn: (message)
  4. error: (message)

  Returns pretty string (does not print)
  5. command: (command)
  6. link: (url)

*/

if (!process.env.PRODUCTION) info('BUILD', 'Running dev stuff');
else warn('This is production mode! Are you sure?');

```

&nbsp;

#### license

MIT © [siddharthkp](https://github.com/siddharthkp)

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