length.js - 📏 JavaScript library for length units conversion.

  •        97

Length.js was designed to work both in the browser and in Node.js. Length.js is available on unpkg CDN in compressed and uncompressed version.




Related Projects

js-quantities - JavaScript library for quantity calculation and unit conversion

  •    Javascript

JS-quantities is originally a JavaScript port of Kevin Olbrich's library Ruby Units (http://github.com/olbrich/ruby-units). The library aims to simplify the handling of units for scientific calculations involving quantities.

UnitsNet - Makes life working with units of measurement just a little bit better.

  •    CSharp

Everyone have written their share of trivial conversions - or less obvious ones where you need to Google that magic constant. Stop littering your code with unnecessary calculations, Units.NET gives you all the common units of measurement and the conversions between them. It is lightweight and thoroughly tested.


  •    Java

JUnitConv is an universal Units of Measure Converter built as a Java Applet. It supports an unlimited number of Units Categories, Units of Measure and Multiplier Prefixes that could be customized using external text files.

The Units of Measure Library

  •    C++

Provides a C++ type-safe mechanism to deal with various units of measure. It prevents many units-related run-time errors (such as mistakenly mixing feet and meters) by catching them at compile time. The library includes scalar, 2D, and 3D vectors.

squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis

  •    Scala

Squants is a framework of data types and a domain specific language (DSL) for representing Quantities, their Units of Measure, and their Dimensional relationships. The API supports typesafe dimensional analysis, improved domain models and more. All types are immutable and thread-safe. Repository hosting for Squants is provided by Sonatype. To use Squants in your SBT project add the following dependency to your build.

Units Conversion Library

  •    Perl

Provides functions to convert quantity strings into appropriately scaled floating point numbers. Useful to Tcl/SWIG/C/C++ application developers who wish to permit users to enter quantities with units, such as quot;20 miles/hourquot; or quot;200pFquot;.

Java library and framework: quantity

  •    Java

This Java library (currently 217 classes) is able to handle quantities in terms of basic arithmetics, conversion to similar units, serialization. As framework it allows to create new dimensions and units by inheritance.

Unit Conversion Library

  •    DotNet

Unit Conversion Library is a .Net 2.0 based library, containing static methods for all the Units Set present in Windows 7 calculator. "Angle", "Area", "Energy", "Length", "Power", "Pressure", "Temperature",Time", "Velocity", "Volume", "Weight/Mass".


  •    DotNet

NGenericDimensions™ is an experiment at creating a .NET library for attempting to represent quantities along with their units of measure, as generic dimensions like length, mass, etc., with compile time safety, lightweight value types, and some operator overloading.

Units of Measure


Simple solution to cope with units of measure in C# applications. You can develop your own unit system, be it SI-based or anything else that suits your needs.

MKUnits - Unit conversion library for Swift.

  •    Swift

MKUnits is extremely precise unit conversion library for Swift. It provides units of measurement of physical quantities and simplifies manipulation of them. MKUnits is available under the MIT license. See the LICENSE file for more info.

Ethica Measures


.NET 4.0 Immutable quantity types to represent a variety of units of measure, with support for localization, cusomt string formatting, implicit value conversions and more.

viewport-units-buggyfill - Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.

  •    Javascript

This is a buggyfill (fixing bad behavior), not a polyfill (adding missing behavior). That said, it provides hacks for you to get viewport units working in old IE and Android Stock Browser as well. If the browser doesn't know how to deal with the viewport units - vw, vh, vmin and vmax - this library will not improve the situation unless you're using the hacks detailed below. The buggyfill uses the CSSOM to access the defined styles rather than ship its own CSS parser, that'S why the hacks abuse the CSS property content to get the values across. The buggyfill iterates through all defined styles the document knows and extracts those that uses a viewport unit. After resolving the relative units against the viewport's dimensions, CSS is put back together and injected into the document in a <style> element. Listening to the orientationchange event allows the buggyfill to update the calculated dimensions accordingly.

winspd - Windows Storage Proxy Driver - User mode disk storage

  •    C

WinSpd enables the creation of storage units ("SCSI disks") in user mode (i.e. without writing any kernel mode code). Such storage units are created and served by user mode storage devices (i.e. user mode processes) and are added to the Windows OS storage stack. They appear to Windows as real disks that can be formatted and accessed via a file system such as NTFS. A user mode storage device is a user mode process that can create and serve storage units. As storage unit is a SCSI "direct-access block device" (as per the definition in the SCSI SBC standard) or more commonly referred to as a "SCSI disk". It is used to store data in logical blocks; each block contains the same amount of data (the Block Length) and has a Logical Block Address (LBA), which is a 64-bit number in a single contiguous address space. In particular WinSpd (and the SCSI standard) do not assume the traditional geometry of cylinder-head-sector (CHS) for how blocks are laid out.

postcss-pxtorem - Convert pixel units to rem (root em) units using PostCSS

  •    Javascript

A plugin for PostCSS that generates rem units from pixel units. Pixels are the easiest unit to use (opinion). The only issue with them is that they don't let browsers change the default font size of 16. This script converts every px value to a rem from the properties you choose to allow the browser to set the font size.

UOM Conversion Library

  •    Java

Units of Measure Conversion Library

unyt - Handle, manipulate, and convert data with units in Python

  •    Python

A package for handling numpy arrays with units. Often writing code that deals with data that has units can be confusing. A function might return an array but at least with plain NumPy arrays, there is no way to easily tell what the units of the data are without somehow knowing a priori.

alfred-convert - Convert between different units in Alfred

  •    Python

Convert between different units offline in Alfred 2 & 3. Alfred-Convert uses a built-in library for lightning-fast conversions.

ruby-units - A unit handling library for ruby

  •    Ruby

Kevin C. Olbrich, Ph.D. This version removes 'mathn' as a dependency. Mathn alters the behavior of some mathematical operators, which frequently causes unexpected behavior and can be a source of difficult to diagnose bugs. Mathn is also scheduled to be removed from the Ruby standard library.

mathjs - An extensive math library for JavaScript and Node.js

  •    Javascript

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.