# siz

> File unit conversion function.

Latest version **1.2.2** (published 2021-05-28) · MIT license · 121 weekly downloads

## Install

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

## 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.2.2 |
| Published | 2021-05-28 |
| First published | 2018-08-30 |
| Weekly downloads | 121 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | drawcall |
| Maintainers | ajiemath |
| Keywords | util, functional |

## Links

- npm: https://www.npmjs.com/package/siz
- npm.io page: https://npm.io/package/siz

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2021-05-28
- 1.2.0 — 2018-08-30
- 1.1.0 — 2018-08-30
- 1.0.0 — 2018-08-30

## README

## about siz

This is a simple file unit conversion function with only a few lines of code. Ok, it’s that simple, you can say that it’s useless.

## useage

```
npm i siz --save
```

```
import siz from 'siz';

siz('100kb');
102400

siz('100KB');
102400

siz('100K');
102400

siz('100k');
102400

siz('100mb');
104857600

siz('100m');
104857600

siz('1m');
1048576

siz('1gb');
1073741824

siz('1t');
1099511627776
```

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