npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

simple-conversions

v1.0.8

Published

A NPM package to simply convert measurements and other things.

Downloads

14

Readme

Simple Conversions

npm version license

A NPM package / GitHub repository to simply convert measurements and other things.

Install using

npm i simple-conversions

How to use:

Length

var convert = require('simple-conversions')

console.log(convert.MilesToKM(1)) // 1 = amount of miles

Output: 1.61

var convert = require('simple-conversions')

console.log(convert.InToCM(1)) // 1 = amount of inches

Output: 2.54

var convert = require('simple-conversions')

console.log(convert.InToFT(12)) // 12 = amount of inches

Output: 1

var convert = require('simple-conversions')

console.log(convert.FtToIN(1)) // 1 = amount of feet

Output: 12

var convert = require('simple-conversions')

console.log(convert.CmToFT(30.48)) // 30.48 = amount of centimeters

Output: 1

var convert = require('simple-conversions')

console.log(convert.FtToCM(1)) // 1 = amount of feet

Output: 30.48

Per-Hour measurements

var convert = require('simple-conversions')

console.log(convert.MphToKPH(1)) // 1 = amount of miles per hour

Output: 1.609344

var convert = require('simple-conversions')

console.log(convert.KphToMPH(1)) // 1 = amount of kilometers per hour

Output: 0.621371192237334

var convert = require('simple-conversions')

console.log(convert.KphToKT(1)) // 1 = amount of kilometers per hour

Output: 1.852

var convert = require('simple-conversions')

console.log(convert.MphToKT(1)) // 1 = amount of miles per hour

Output: 0.8688097306689835

var convert = require('simple-conversions')

console.log(convert.KtToMPH(1)) // 1 = amount of knots

Output: 1.151

var convert = require('simple-conversions')

console.log(convert.KtToKPH(1)) // 1 = amount of knots

Output: 0.5399568034557235

Temperatures

var convert = require('simple-conversions')

console.log(convert.FtoC(32)) // 32 = fahrenheit value

Output: 0

var convert = require('simple-conversions')

console.log(convert.CtoF(0)) // 0 = celsius value

Output: 32

var convert = require('simple-conversions')

console.log(convert.FtoK(32)) // 32 = fahrenheit value (to kelvin)

Output: 273.15

var convert = require('simple-conversions')

console.log(convert.CtoK(0)) // 0 = celsius value (to kelvin)

Output: 273.15

var convert = require('simple-conversions')

console.log(convert.KtoF(273.15)) // 273.15 = kelvin value

Output: 32

var convert = require('simple-conversions')

console.log(convert.KtoC(273.15)) // 273.15 = kelvin value

Output: 0

Repository

GitHub GitHub/Bugs GitHub/README NPM Package Run on RunKit

Thanks for looking at!