1.0.5 • Published 8 years ago

sout.js v1.0.5

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

sout.js

A simple Output container utilizing Chalk's awesomeness.

npm

Install

npm install sout.js --save

Example useage:

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:

Screenshot of sout.js example output

Requires:

ModuleVersion
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()

const msgApp = new sout('AppName', 1);

To do:

TaskProgress
Remove Giant objects of possible colors.Done!
Push to publicDone!
Load bar timer like npmon the table
Integrate A simple timerpossibility
Road map:
  • Allow use of full chalk.styles object
  • minimize code footprint
  • give option of changing tab size.
  • Make sout.js public!
  • create a kick-ass load bar replica, similar to npm's load bar