1.0.0 • Published 2 years ago

@euripidean/convertinator v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@euripidean/convertinator

example workflow

npm version GitHub GitHub code size in bytes GitHub issues

Introduction

@euripidean/convertinator is a JavaScript library that helps you with some of those tricksy conversions, so that you don't have to remember them.

Installation

You can install the library using npm:

npm install @euripidean/convertinator

Usage

Currently supported conversions: CF = Celsius to Fahrenheit FC = Fahrenheit to Celsius KM = Kilometers to Miles MK = Miles to Kilometers KLB = Kilograms to Pounds LBK = Pounds to Kilograms LG = Liters to Gallons GL = Gallons to Liters

const { Convert } = require("@euripidean/convertinator");

// Create a new Conversion instance, passing in the value to convert and the ConversionType
const convert = new Convert(10, "CF");

// Get the converted value using the perform() method
console.log(convert.perform()); // 50
1.0.0

2 years ago