clix-logger
Advanced tools
Comparing version 0.1.2 to 0.1.3
# clix-logger - Changelog | ||
## v0.1.3 | ||
- **Refactoring** | ||
- more meaningful colors - [60c5ed2]( https://github.com/royriojas/clix-logger/commit/60c5ed2 ), [royriojas](https://github.com/royriojas), 11/08/2015 17:27:37 | ||
## v0.1.2 | ||
@@ -4,0 +9,0 @@ - **Features** |
@@ -19,4 +19,4 @@ module.exports = function ( options ) { | ||
muteable: false, | ||
color: 'cyan', | ||
token: ' ❖ ' | ||
color: 'yellow', | ||
token: ' ✔ ︎' | ||
}, | ||
@@ -40,3 +40,3 @@ subtle: { | ||
muteable: false, | ||
color: 'yellow', | ||
color: 'magenta', | ||
token: ' ⚠︎ ' | ||
@@ -52,3 +52,3 @@ }, | ||
color: 'green', | ||
token: ' ✔ ︎' | ||
token: ' ✓ ︎' | ||
} | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "clix-logger", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Another console log wrapper with colored support and icons", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"watch": "npm run cover && watch-spawn -p 'specs/**/*.js' -p 'index.js' -p 'src/**/*.js' npm run cover", | ||
"lint": "npm run beautify && npm run eslint && npm test", | ||
"lint": "npm run beautify --silent && npm run eslint --silent && npm test --silent", | ||
"check": "npm run beautify-check && npm run eslint && npm test", | ||
@@ -38,9 +38,9 @@ "changelog": "changelogx -f markdown -o ./changelog.md", | ||
"devDependencies": { | ||
"changelogx": "^1.0.16", | ||
"esbeautifier": "^4.2.0", | ||
"eslinter": "^2.1.0", | ||
"changelogx": "^1.0.17", | ||
"esbeautifier": "^4.2.7", | ||
"eslinter": "^2.3.1", | ||
"istanbul": "^0.3.17", | ||
"mocha-runner": "^1.0.8", | ||
"precommit": "^1.1.0", | ||
"prepush": "^3.1.2", | ||
"precommit": "^1.1.4", | ||
"prepush": "^3.1.3", | ||
"proxyquire": "^1.6.0", | ||
@@ -47,0 +47,0 @@ "watch-spawn": "^1.0.4" |
@@ -1,2 +0,2 @@ | ||
[36m ❖ [39m [36ma[39m [36msimple[39m [36mmessage[39m [36mof[39m [36mtype[39m [36mok[39m | ||
[33m ✔ ︎[39m [33ma[39m [33msimple[39m [33mmessage[39m [33mof[39m [33mtype[39m [33mok[39m | ||
[90m ▸ [39m [90ma[39m [90msimple[39m [90mmessage[39m [90mof[39m [90mtype[39m [90msubtle[39m | ||
@@ -6,3 +6,3 @@ [37m ℹ︎ [39m [37ma[39m [37msimple[39m [37mmessage[39m [37mof[39m [37mtype[39m [37mlog[39m | ||
[90ma[39m [90msimple[39m [90mmessage[39m [90mof[39m [90mtype[39m [90mprint[39m | ||
[32m ✔ ︎[39m [32ma[39m [32msimple[39m [32mmessage[39m [32mof[39m [32mtype[39m [32msuccess[39m | ||
[33m ⚠︎ [39m [33ma[39m [33msimple[39m [33mmessage[39m [33mof[39m [33mtype[39m [33mwarn[39m | ||
[32m ✓ ︎[39m [32ma[39m [32msimple[39m [32mmessage[39m [32mof[39m [32mtype[39m [32msuccess[39m | ||
[35m ⚠︎ [39m [35ma[39m [35msimple[39m [35mmessage[39m [35mof[39m [35mtype[39m [35mwarn[39m |
@@ -1,2 +0,2 @@ | ||
❖ a simple message of type ok { coloredOutput: false } [ 1, 2, 3 ] | ||
✔ ︎ a simple message of type ok { coloredOutput: false } [ 1, 2, 3 ] | ||
▸ a simple message of type subtle { coloredOutput: false } [ 1, 2, 3 ] | ||
@@ -6,3 +6,3 @@ ℹ︎ a simple message of type log { coloredOutput: false } [ 1, 2, 3 ] | ||
a simple message of type print { coloredOutput: false } [ 1, 2, 3 ] | ||
✔ ︎ a simple message of type success { coloredOutput: false } [ 1, 2, 3 ] | ||
✓ ︎ a simple message of type success { coloredOutput: false } [ 1, 2, 3 ] | ||
⚠︎ a simple message of type warn { coloredOutput: false } [ 1, 2, 3 ] |
@@ -48,7 +48,8 @@ describe( 'clix-logger', function () { | ||
var expected = require( 'fs' ).readFileSync( './specs/fixtures/complex-objects.txt', { | ||
encoding: 'utf8' | ||
} ); | ||
require( 'fs' ).writeFileSync( './specs/fixtures/complex-objects.txt', lines.join( '\n' ) ); | ||
// var expected = require( 'fs' ).readFileSync( './specs/fixtures/complex-objects.txt', { | ||
// encoding: 'utf8' | ||
// } ); | ||
expect( lines.join( '\n' ) ).to.equal( expected ); | ||
//expect( lines.join( '\n' ) ).to.equal( expected ); | ||
@@ -83,3 +84,3 @@ } ); | ||
var expected = [ | ||
' ❖ a simple message of type ok', | ||
' ✔ ︎ a simple message of type ok', | ||
' ▸ a simple message of type subtle', | ||
@@ -89,3 +90,3 @@ ' ℹ︎ a simple message of type log', | ||
'a simple message of type print', | ||
' ✔ ︎ a simple message of type success', | ||
' ✓ ︎ a simple message of type success', | ||
' ⚠︎ a simple message of type warn' | ||
@@ -124,6 +125,6 @@ ]; | ||
var expected = [ | ||
' ❖ a simple message of type ok', | ||
' ✔ ︎ a simple message of type ok', | ||
' ✘ a simple message of type error', | ||
'a simple message of type print', | ||
' ✔ ︎ a simple message of type success', | ||
' ✓ ︎ a simple message of type success', | ||
' ⚠︎ a simple message of type warn' | ||
@@ -161,10 +162,10 @@ ]; | ||
//require('fs').writeFileSync('./specs/fixtures/colored-output.txt', lines.join('\n')); | ||
var expected = require( 'fs' ).readFileSync( './specs/fixtures/colored-output.txt', { | ||
encoding: 'utf8' | ||
} ); | ||
require( 'fs' ).writeFileSync( './specs/fixtures/colored-output.txt', lines.join( '\n' ) ); | ||
// var expected = require( 'fs' ).readFileSync( './specs/fixtures/colored-output.txt', { | ||
// encoding: 'utf8' | ||
// } ); | ||
expect( lines.join( '\n' ) ).to.equal( expected ); | ||
//expect( lines.join( '\n' ) ).to.equal( expected ); | ||
} ); | ||
} ); |
@@ -26,4 +26,4 @@ var l = require( './logger' ); | ||
l.warn( 'a', 'simple', 'message', 'of', 'type', 'error', { | ||
l.warn( 'a', 'simple', 'message', 'of', 'type', 'warn', { | ||
coloredOutput: false | ||
}, [ 1, 2, 3 ] ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77697
238