New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

converture

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

converture

Convert temperatures (Kelvin, Celsius and Fahrenheit)

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

🌡 Converture 🌡

Travis Build

Converture is a temperature converter, including functions to convert from/to Celsius, Fahrenheit and Kelvin. The returned value is rounded to two decimal places.

Install

npm install converture

Usage

// Using CommonJS
const convert = require('converture').default;

// OR
// Using ES6 modules
import convert from 'converture';

convert.kelvin(50).toCelsius();
// => -223.15
convert.kelvin(50).toFahrenheit();
// => -369.67
convert.celsius(20).toKelvin();
// => 293.15
convert.celsius(20).toFahrenheit();
// => 68
convert.fahrenheit(44).toKelvin();
// => 279.82
convert.fahrenheit(44).toCelsius();
// => 6.67

// You could also import a single function
import { kelvin } from 'converture';

kelvin(50).toFahrenheit();
// => -369.67

License

MIT © Zsolt Meszaros

Keywords

convert

FAQs

Package last updated on 30 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts