imagemin-log
Advanced tools
Comparing version 1.0.2 to 2.0.0
35
index.js
'use strict'; | ||
var Log = require('stream-log'); | ||
var figures = require('figures'); | ||
var Squeak = require('squeak'); | ||
/** | ||
* Initialize `Log` | ||
* Initialize `log` | ||
*/ | ||
var log = new Log(process.stderr, 2) | ||
.type('info', '36m') | ||
.type('warn', '33m'); | ||
var log = new Squeak({separator: ' '}); | ||
/** | ||
* Success | ||
* Add types | ||
*/ | ||
log.type('success', '32m', function () { | ||
log.end(); | ||
log.type('info', { | ||
color: 'cyan', | ||
prefix: figures.info | ||
}); | ||
/** | ||
* Error | ||
*/ | ||
log.type('warn', { | ||
color: 'yellow', | ||
prefix: figures.warning | ||
}); | ||
log.type('error', '31m', function () { | ||
log.type('success', { | ||
color: 'green', | ||
prefix: figures.tick | ||
}, function () { | ||
log.end(); | ||
}); | ||
log.type('error', { | ||
color: 'red', | ||
prefix: figures.cross | ||
}, function () { | ||
log.end(); | ||
}); | ||
/** | ||
@@ -30,0 +41,0 @@ * Module exports |
{ | ||
"name": "imagemin-log", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "The log utility used in imagemin related projects", | ||
@@ -26,3 +26,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"stream-log": "^0.2.1" | ||
"figures": "^1.3.5", | ||
"squeak": "^1.0.0" | ||
}, | ||
@@ -29,0 +30,0 @@ "devDependencies": { |
@@ -22,6 +22,6 @@ # imagemin-log [![Build Status](http://img.shields.io/travis/imagemin/imagemin-log.svg?style=flat)](https://travis-ci.org/imagemin/imagemin-log) | ||
/* | ||
info : this is a message | ||
warn : this is a warning | ||
success : this is a success message | ||
error : Error: this is an error | ||
ℹ this is a message | ||
⚠ this is a warning | ||
✔ this is a success message | ||
✖ Error: this is an error | ||
at ChildProcess.exithandler (child_process.js:648:15) | ||
@@ -28,0 +28,0 @@ at ChildProcess.emit (events.js:98:17) |
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
2942
274
4
34
2
+ Addedfigures@^1.3.5
+ Addedsqueak@^1.0.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedarray-find-index@1.0.2(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedconsole-stream@0.1.1(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedlpad-align@1.1.2(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsqueak@1.3.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtrim-newlines@1.0.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
- Removedstream-log@^0.2.1
- Removedlongest@0.2.1(transitive)
- Removedstream-log@0.2.3(transitive)