Socket
Socket
Sign inDemoInstall

siz

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

siz

File unit conversion function.


Version published
Maintainers
1
Weekly downloads
215
decreased by-0.92%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 28 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc