@euripidean/convertinator

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @euripidean/convertinator

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

11.6 kB

Total Files

8

Last publish

Collaborators

  • euripidean