Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siddharthkp/prettycli
Pretty print messages on the terminal
https://github.com/siddharthkp/prettycli
messages node pretty terminal
Last synced: 23 days ago
JSON representation
Pretty print messages on the terminal
- Host: GitHub
- URL: https://github.com/siddharthkp/prettycli
- Owner: siddharthkp
- License: mit
- Created: 2017-02-28T12:14:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T07:21:13.000Z (almost 7 years ago)
- Last Synced: 2024-12-28T09:43:17.275Z (28 days ago)
- Topics: messages, node, pretty, terminal
- Language: JavaScript
- Size: 72.3 KB
- Stars: 48
- Watchers: 4
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli - prettycli - Pretty print messages on the terminal. (Output)
README
Pretty print messages on the terminal
#### 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?');```
#### license
MIT © [siddharthkp](https://github.com/siddharthkp)