New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bytes-buck

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bytes-buck

All the tools you need to play with bytes.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

ByteBUCK 💲🚀

Don't have any better name for it :p

It simply helps in calculating bytes and humanizing them.

⚡ Usage

yarn add byte-buck
# OR npm install byte-buck

Example:-

import byteBuck from 'byte-buck'

let result = byteBuck(
  // Bytes you want to sum
  ["5 GiB", "12 MiB", "5 GB"],

  // Places after decimal, ex. 4.5678 KB
  4,

  // If true, 4...KB will eb converted to 4...KiB
  true
)

📃 Docs

Docs can be found here

🤟 Contributions

Contributions, issues and feature requests are welcome!

if you feel that something is missing, feel free to create an Issue.

❤ Support

Almost all the project I make are Open Source.

Do ⭐ this Project.

Made with ❤ and TypeScript.

Keywords

bytes

FAQs

Package last updated on 01 May 2021

Did you know?

Socket

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