Convert between different byte units
npm i snakebyte
Download the latest version of snakebyte here.
const { snakebyte } = require("snakebyte");
const kilobyteToMegabyte = snakebyte({
from: "Kilobyte", // optional, defaults to "Byte"
to: "Megabyte",
fractions: 2, // optional, defaults to 3
});
kilobyteToMegabyte(1000);
// => 1
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see here for more details.