Skip to content

v4.0.0 Added Enums for distance (not on NPM yet)

Compare
Choose a tag to compare
@YetNT YetNT released this 04 Jun 16:40
· 49 commits to main since this release

Changelog

all that was added was the Area, Distance and Volume.

Usage (using Distance)

const { ConvUnit, Distance } = require('@yetnt/ump')

ConvUnit("dist", 12, Distance.Millimeter, Distance.Centimeter) // 1.2
ConvUnit("dist", 1, Distance.Inch, Distance.Centimeter) // 2.54
ConvUnit("dist", 98, Distance.NauticalMile, Distance.Nanometer) // 1852000000000

Full Changelog: v3.2.1...v4.0.0

Full Changelog: v3.2.1...v4.0.0