open-index/open-npm huggingface dataset:
npm package: @nishar_khorajiya/filesize-converter
Description: A lightweight Node.js package for file size conversion
Author: Nishar Khorajiya
Latest version: 1.0.0

# convert-file-size 
A lightweight Node.js package for file size conversion

## Installation
```bash
npm install filesize-converter 

```
## Usage

Here's an example of how to use the filesize-converter package:

```javascript
// Require the filesize-converter package
const filesizeConverter = require('filesize-converter');

// Convert bytes to kilobytes
console.log(filesizeConverter.bytesToKilobytes(1024)); // Output: 1

// Convert bytes to megabytes
console.log(filesizeConverter.bytesToMegabytes(1048576)); // Output: 1

// Convert bytes to gigabytes
console.log(filesizeConverter.bytesToGigabytes(1073741824)); // Output: 1

```
## License

License: [Apache-2.0](https://github.com/nishar-khorajiya/convert-file-size/blob/main/LICENSE)