# gzipped

> Command line utility to calculate gzip compression savings

Latest version **0.0.5** (published 2014-03-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install gzipped
pnpm add gzipped
yarn add gzipped
bun add gzipped
```

Provides the command `gzipped`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-03-15 |
| First published | 2014-03-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | robin@robinmurphy.co.uk |
| Maintainers | robinmurphy |
| Keywords | gzip, gzipped, compression, stats |

## Links

- npm: https://www.npmjs.com/package/gzipped
- Repository: https://github.com/robinjmurphy/gzipped
- Issues: https://github.com/robinjmurphy/gzipped/issues
- npm.io page: https://npm.io/package/gzipped

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ~0.4.0
- [filesize](https://npm.io/package/filesize.md) ~2.0.3
- [commander](https://npm.io/package/commander.md) ~2.1.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.5 (latest) — 2014-03-15
- 0.0.4 — 2014-03-15
- 0.0.3 — 2014-03-15
- 0.0.2 — 2014-03-15

## README

# gzipped

[![Build Status](https://travis-ci.org/robinjmurphy/gzipped.png?branch=master)](https://travis-ci.org/robinjmurphy/gzipped) [![Code Climate](https://codeclimate.com/github/robinjmurphy/gzipped.png)](https://codeclimate.com/github/robinjmurphy/gzipped)

> Calculates [gzip](http://en.wikipedia.org/wiki/Gzip) compression savings.

## Installation

```sh
npm install -g gzipped
```

## Usage

```sh
gzipped file.txt
```

Output:

```sh
Original size: 446 B
Compressed size: 287 B
Compression ratio: 64.35%
```

You can pass in any type of file - it's not limited to plain text.

#### Usage with `STDIN`

You can also use _gzipped_ with input from `STDIN`, i.e:

```sh
cat file.txt | gzipped
```

This allows you to use it with remote resources:

```sh
curl http://www.example.com | gzipped
```

And the clipboard:

```sh
pbpaste | gzipped
```

etc.

---
_Source: https://npm.io/package/gzipped · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
