Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imagemin-log

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-log - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

LICENSE.md

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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc