doc
Directory actions
More options
Directory actions
More options
doc
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
[](https://www.npmjs.org/package/consolate) [](https://travis-ci.org/rollercodester/consolate) [](https://david-dm.org/rollercodester/consolate) # consolate #### Customize your Node.JS console like a dignitary. Easily create intuitive log functions on the console object—even override built-in console functions (error, info, warn, etc.) And while you're at it, feel free to easily define colors, prefixes, and bullets that can automatically animate [cli-cursors](https://www.npmjs.com/package/cli-spinners).  ## Index * [Examples](#examples) * [Super-simple Custom Console Method](#example1) * [Overriding Built-in Console Methods](#example2) * [Animated vs Static Bullets](#example3) * [Smart Log Argument Handling](#example4) * [Apollo 11](#example5) * [CI/CD Pipeline Console](#example6) * [API Reference](#api) <a name="examples"></a> ## Examples <h3><a name="example1" href='https://github.com/rollercodester/consolate/blob/master/examples/1-simple-custom-method.js'>Super-simple Custom Console Method</a></h3>  ```javascript var consolate = require('consolate') consolate.init({ arrow: { color: consolate.colors.cyan, prefix: { chars: '>>>>>----->', color: consolate.colors.lightCyan } } }) console.arrow('My customized "arrow" log method!') setTimeout(() => { console.arrow('Just think of the possibilities :-)') }, 1500) setTimeout(() => { console.arrow('And we haven\'t even scratched the surface.') }, 3000) setTimeout(() => { console.arrow('Okay, one more time before moving on.') console.log() }, 4500) ``` <h3><a name="example2" href='https://github.com/rollercodester/consolate/blob/master/examples/2-console-overrides-on-built-in-methods.js'>Overriding Built-in Console Methods</a></h3>  <h3><a name="example3" href='https://github.com/rollercodester/consolate/blob/master/examples/3-animated-and-static-bullets.js'>Animated vs Static Bullets</a></h3>  <h3><a name="example4" href='https://github.com/rollercodester/consolate/blob/master/examples/4-smart-log-argument-handling.js'>Smart Log Argument Handling</a></h3>  <h3><a name="example5" href='https://github.com/rollercodester/consolate/blob/master/examples/5-apollo-11.js'>Apollo 11</a></h3>  <h3><a name="example6" href='https://github.com/rollercodester/consolate/blob/master/examples/6-cicd-pipeline.js'>CI/CD Pipeline Console</a></h3>  <a name="api"></a> ## API Reference {{#module name="consolate"}} {{>body~}} {{>members~}} {{/module}}