Releases: yetnt/ump
v4.1.0
v4.0.0 Added Enums for distance (not on NPM yet)
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
3.2.1 (Jest -> Mocha)
I just moved from Jest to Mocha, and added expect.js. Not much changes
Full Changelog: v3.2.0...v3.2.1
3.2.0 (Volume)
Added Volume to ConvUnit()
Full Changelog: v3.1.0...v3.2.0
NPM: https://www.npmjs.com/package/@yetnt/ump/v/3.2.0
3.1.0
Added optional parameter to DinRatio
, Now will by default NOT round off to 2 decimal places
Old
Ump.DinRatio(456.93, 12, 5) // ['322.56', '134.4']
New
Ump.DinRatio(456.93, 12, 5) // [ 322.5388235294118, 134.39117647058825 ]
Ump.DinRatio(456.93, 12, 5, true) // ['322.56', '134.4']
Full Changelog: v3.0.0...v3.1.0
3.0.0
Changed ConvDist()
to ConvUnit()
Old -
Ump.ConvDist(1, "cm", "m")
New -
Ump.ConvUnit("dist", 1, "cm", "m")
Did this so int eh future i can make it support multiple units. Currently support Distance (dist) and Area (Area)
Full Changelog: v2.1.6...v3.0.0
NPM : https://www.npmjs.com/package/@yetnt/ump/v/3.0.0
2.1.6
Fixed error.
Full Changelog: v2.1.5...v2.1.6
2.1.5
Got tests!!!
For tests jest
was intalled as a dev dependency
NPM: https://www.npmjs.com/package/@yetnt/ump/v/2.1.5
Full Changelog: v2.1.4...v2.1.5
2.1.4
Moved source code to src
Improved Typescript documentation.
Full Changelog: v2.1.3...v2.1.4
2.1.3
Full Changelog: v2.1.2...v2.1.3