# disty

> Pretty print dist file sizes with only bare minimum of dependencies.

Latest version **1.1.1** (published 2018-10-02) · MIT license · 0 weekly downloads

## Install

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

Provides the command `disty`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-10-02 |
| First published | 2018-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Greg Skiano |
| Maintainers | skiano |
| Keywords | filesize, weight, dist, utility, gzip, tooling, tool |

## Links

- npm: https://www.npmjs.com/package/disty
- Repository: https://github.com/skiano/disty
- Homepage: https://github.com/skiano/disty#readme
- Issues: https://github.com/skiano/disty/issues
- npm.io page: https://npm.io/package/disty

## Dependencies (2)

- [bytes](https://npm.io/package/bytes.md) 3.0.0
- [text-table](https://npm.io/package/text-table.md) 0.2.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

- 1.1.1 (latest) — 2018-10-02
- 1.1.0 — 2018-10-02
- 1.0.0 — 2018-10-02

## README

# disty
Pretty print dist file sizes with only bare minimum of dependencies.

### Why

With npm audits and increasingly huge dev tools, I am starting to really want packages that have very shallow dependency trees, so this one has exactly two: `bytes` and `text-table`, which both have none.

It installs and boots fast and makes me happy :)

### API

```javascript
const {
  printFileStats,
  getFormattedStats,
  getFileStats
} = require('disty');


printFileStats('path/to/directory', [options]); // prints to console and returns promise
```

*OPTIONS*

- `filter`: function given a file path, returns true if it should be included
- `sort`: function given two file objects that sorts them
- `maxDepth`: how many folders deep should it continue (0 is top level only)
- `checkGzip`: also estimate gzip size (true by default)
- `bytesOptions`: formatting options passed to `bytes`

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