Skip to content

Commit

Permalink
v1.2.2. Added some more built-in styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Feb 13, 2017
1 parent 8642e59 commit 5918407
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snooplogg",
"version": "1.2.1",
"version": "1.2.2",
"description": "Your mind on your logs and your logs on your mind",
"main": "./dist/index.js",
"author": "Chris Barber <[email protected]> (https://github.com/cb1kenobi)",
Expand Down
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,13 @@ function createInstanceWithDefaults() {
.style('lowercase', s => String(s).toLowerCase())
.style('bracket', s => `[${s}]`)
.style('paren', s => `(${s})`)

.style('highlight', chalk.cyan)
.style('lowlight', chalk.blue)
.style('ok', chalk.green)
.style('notice', chalk.yellow)
.style('alert', chalk.red)
.style('note', chalk.gray)
.style('auto', function (text) {
let hash = 0;
for (const i in text) {
Expand Down

0 comments on commit 5918407

Please sign in to comment.