Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including snakebyte with all npm packages installed. Try it out:

var snakebyte = require("snakebyte")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

snakebyte v1.0.0

Convert between different byte units


Convert between different byte units

Build Status Codacy Badge npm bundle size npm GitHub issues GitHub closed issues GitHub


Node.js environment

npm i snakebyte --save

Browser environment

Download the latest version of snakebyte here.


Node.js environment

const snakebyte = require("snakebyte");

snakebyte.convert(100, snakebyte.Kilobyte, snakebyte.Gigabyte);
// => 0.0001


Please read 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 GPL-3.0 License - see here for more details.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free