1.0.1 • Published 3 years ago
react-bytes-converter v1.0.1
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.