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

maxmin

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maxmin - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

index.js

@@ -5,2 +5,4 @@ 'use strict';

var chalk = require('chalk');
var figures = require('figures');
var arrow = ' ' + figures.arrowRight + ' ';

@@ -16,6 +18,6 @@ function format(size) {

var ret = format(max.length) + ' → ' + format(min.length);
var ret = format(max.length) + arrow + format(min.length);
if (useGzip === true) {
ret += ' → ' + format(gzipSize.sync(min)) + chalk.gray(' (gzip)');
ret += arrow + format(gzipSize.sync(min)) + chalk.gray(' (gzip)');
}

@@ -22,0 +24,0 @@

{
"name": "maxmin",
"version": "0.2.1",
"version": "0.2.2",
"description": "Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)",

@@ -38,2 +38,3 @@ "license": "MIT",

"chalk": "^0.5.0",
"figures": "^1.0.1",
"gzip-size": "^0.2.0",

@@ -40,0 +41,0 @@ "pretty-bytes": "^0.1.0"

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