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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@44north/unitconverter

v1.2.0

Published

The UnitConverter

Readme

44 North

UnitConverter

This module is meant to provide helper methods for testing modules and services.

Install

Log into npm and run one of the following

npm install @44north/unitconverter --save-dev

or

yarn add @44north/unitconverter --dev

Usage

import { TemperatureConverter } from "@44north/unitconverter";

const temp1 = new TemperatureConverter("F", "C").convert(212); // 100
const temp2 = new TemperatureConverter()
    .setFromUnit("F")
    .setToUnit("C")
    .convert(212); // 100
const temp3 = new TemperatureConverter().convert(212, "F", "C"); // 100
const temp4 = TemperatureConverter.convert(212)
    .from("F")
    .to("C"); // 100

Length

import { converters } from "@44north/unitconverter";
const lengthConverter = new converters.length();

// OR

import { DimensionsConverter } from "@44north/unitconverter";
const lengthConverter = DimensionsConverter();

Metric Units

  • mm - Millimeter
  • cm - Centimeter
  • m - Meter
  • km - Kilometer

Imperial Units

  • in - Inch
  • yd - Yard
  • ft-us - US Survey Foot
  • ft - Foot
  • fathom - Fathom
  • mi - Mile
  • nMi - Nautical Mile

Mass

import { converters } from "@44north/unitconverter";
const massConverter = new converters.mass();

// OR

import { MassConverter } from "@44north/unitconverter";
const massConverter = MassConverter();

Metric Units

  • mcg - Microgram
  • mg - Milligram
  • g - Gram
  • kg - Kilogram
  • mt - Metric Tonne

Imperial Units

  • oz - Ounce
  • lb - Pound
  • t - Ton

Pressure

import { converters } from "@44north/unitconverter";
const pressureConverter = new converters.pressure();

// OR

import { PressureConverter } from "@44north/unitconverter";
const pressureConverter = PressureConverter();

Metric Units

  • Pa - pascal
  • kPa - kilopascal
  • MPa - megapascal
  • hPa - hectopascal
  • bar - bar
  • torr - torr

Imperial Units

  • psi - pound per square inch
  • ksi - kilopound per square inch

Speed

import { converters } from "@44north/unitconverter";
const speedConverter = new converters.speed();

// OR

import { SpeedConverter } from "@44north/unitconverter";
const speedConverter = SpeedConverter();

Metric Units

  • m/s - Metre per second
  • km/h - Kilometre per hour

Imperial Units

  • m/h - Mile per hour
  • knot - Knot
  • ft/s - Foot per second

Temperature

import { converters } from "@44north/unitconverter";
const temperatureConverter = new converters.temperature();

// OR

import { TemperatureConverter } from "@44north/unitconverter";
const temperatureConverter = TemperatureConverter();

Metric Units

  • C - degree Celsius
  • K - degree Kelvin

Imperial Units

  • F - degree Fahrenheit
  • R - degree Rankine

Volume

import { converters } from "@44north/unitconverter";
const volumeConverter = new converters.volume();

// OR

import { VolumeConverter } from "@44north/unitconverter";
const volumeConverter = VolumeConverter();

Metric Units

  • mm3 - Cubic Millimeter
  • cm3 - Cubic Centimeter
  • ml - Millilitre
  • cl - Centilitre
  • dl - Decilitre
  • l - Litre
  • kl - Kilolitre
  • m3 - Cubic meter
  • km3 - Cubic kilometer
  • krm - Matsked
  • tsk - Tesked
  • msk - Matsked
  • kkp - Kaffekopp
  • glas - Glas
  • kanna - Kanna

Imperial Units

  • tsp - Teaspoon
  • Tbs - Tablespoon
  • in3 - Cubic inch
  • fl-oz - Fluid Ounce
  • cup - Cup
  • pnt - Pint
  • qt - Quart
  • gal - Gallon
  • ft3 - Cubic foot
  • yd3 - Cubic yard

Attribution

This module is based of the work of Ben Ng repository convert-units npm module. while functional, its not been maintained or updated in several years.