https://github.com/danieltamkin/sout.js
A simple Output container utilizing Chalk's awesomeness.
https://github.com/danieltamkin/sout.js
chalk nodejs output sout
Last synced: 18 days ago
JSON representation
A simple Output container utilizing Chalk's awesomeness.
- Host: GitHub
- URL: https://github.com/danieltamkin/sout.js
- Owner: DanielTamkin
- License: isc
- Created: 2016-03-25T19:07:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-02T02:41:16.000Z (about 10 years ago)
- Last Synced: 2025-08-05T05:18:10.719Z (10 months ago)
- Topics: chalk, nodejs, output, sout
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sout.js
A simple Output container utilizing Chalk's awesomeness.
[](https://github.com/DanielTamkin/sout.js)
Got a suggestion for this module? Tweet me: [](https://twitter.com/CodeHands)
### Install
`npm install sout.js --save`
_Example useage:_
```javascript
const sout = require('sout.js');
const msgApp = new sout('AppName');
msgApp.log('Hey This is a cool message!');
msgApp.log('This messages title will be in green','green');
msgApp.log('This messages title will be in red','red');
msgApp.bracket('This message is bracketed');
msgApp.bracket('This bracketed message is green','green');
msgApp.bracket('This bracketed message is red','red');
msgApp.bracket('You can change the tab amount of brackets','',1);
msgApp.bracket('Allowing you to have indenting','',1);
```
Output:

### Requires:
| Module | Version |
| ------------- | ------------- |
| [Chalk](https://www.npmjs.com/package/chalk) | ^1.1.1 |
### Settings:
You can change the tab itself. This is great if you want much bigger tabs, or smaller tabs. It gives you options.
`msgApp.tab = ' '`
---
*Pro tip:* You can indent a whole object of messages,
do this when your creating creating a `new sout()`
```javascript
const msgApp = new sout('AppName', 1);
```
---
#### To do:
| Task | Progress |
| ------------- | ------------- |
| Remove Giant objects of possible colors. | Done! |
| Push to public | Done! |
| Load bar timer like npm | on the table |
| Integrate A simple timer | possibility |
###### Road map:
- [x] Allow use of full `chalk.styles` object
- [x] minimize code footprint
- [x] give option of changing tab size.
- [x] Make sout.js public!
- [ ] create a kick-ass load bar replica, similar to npm's load bar