unitify-ts
v2.0.0
Published
A TypeScript library for converting between various units of measurement, including length, weight, volume, temperature, speed, area, energy, pressure, power, data, angle, luminance and computation time.
Downloads
874
Maintainers
Readme
Unitify TS
Unitify TS is a TypeScript library for converting and manipulating units of measurement. It simplifies working with different unit systems, allowing for precise and quick conversions.
Features
- Conversion between multiple units of measurement.
- Support for units of length, weight, volume, temperature, speed, area, energy, pressure, power, data, angle, luminance and computation time.
- Simple and easy-to-use.
Installation
To install Unitify, use npm:
npm install unitify-ts
Usage
Here is a basic example of how to use Unitify:
import { UnitifyTS } from 'unitify-ts'
// Convert 5 celsius to fahrenheit
const fahrenheit = UnitifyTS.convert(5, 'celsius', 'fahrenheit', 'temperature')
console.log(`5 celsius is ${fahrenheit} fahrenheit`)
Contributing
Contributions are welcome! Please open an issue or a pull request on GitHub.
License
This project is licensed under the MIT License.