react-bytes-converter
v1.0.1
Published
Now you can easily convert bytes by using this package.
Downloads
8
Maintainers
Readme
React Bytes Converter
Now you can easily convert bytes by using this package.
Installation
npm:
npm install react-bytes-converter
Example
import byteConverter from "react-bytes-converter";
export default () => {
return byteConverter("1048576");
};
Result
1 MB
Usage
Simply pass bytes to byteConverter function as string same as the above example. It will return the converted result.