https://github.com/muhajirdev/convert-unit
https://github.com/muhajirdev/convert-unit
unit-conversion unit-converter utilities utility
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/muhajirdev/convert-unit
- Owner: muhajirdev
- Created: 2018-10-18T15:34:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:56:03.000Z (almost 2 years ago)
- Last Synced: 2025-03-08T12:51:13.318Z (7 months ago)
- Topics: unit-conversion, unit-converter, utilities, utility
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/convert-unit
- Size: 388 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert Unit
Convert values to the closest unit
## Usage
```bash
npm install --save convert-unit
``````javascript
const { toClosestUnit } = require("convert-unit");console.log(toClosestUnit(10000000));
// { value: 10, size: 'MB' }
```## Contributing
- [Submit an idea](https://github.com/muhajirframe/convert-unit/issues/new)
- Make a pull request**Enjoy!**