Skip to content
BikossorPublic

About

JavaScript library to convert between different byte units

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

snakebyte

Convert between different byte units

Node.js CI npm bundle size npm GitHub issues GitHub

Installation

Node.js environment

npm i snakebyte

Browser environment

Download the latest version of snakebyte here.

Usage

Node.js environment

const { snakebyte } = require("snakebyte");

const kilobyteToMegabyte = snakebyte({
  from: "Kilobyte", // optional, defaults to "Byte"
  to: "Megabyte",
  fractions: 2, // optional, defaults to 3
});

kilobyteToMegabyte(1000);
// => 1

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see here for more details.

About

JavaScript library to convert between different byte units

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages