Parse Dimensions. Turn messy dimension measurements into clean, consistent numbers.

github.com/jeresig/node-parse-dimensions

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

April 2017
  • Tweak README formatting a bit.
  • Update version to v0.0.8.
  • Add a README explaining how to use this project.
April 2016
  • Bail on converting dimensions that have no unit.
  • Handle upper-case strings, handle diameters, handle ×, strip more pun…
December 2015
  • Adjust how number rounding is done.
  • Add a utility for converting dimension numbers.
  • Make the parse dimension unit configurable. Bump to v0.0.3.
November 2015
  • Make the converted dimension configurable.
September 2015
  • Add in support for flipping dimensions.
  • Make a separate method for handling the conversion of dimensions to m…
July 2015
  • Convert all unit dimensions to millimeters.
  • Fix up a couple common mistakes in the dimension strings.
  • Fix commas in numbers.
  • Match individual dimensions.
  • Fix up fractions and labels.
  • Add NPM package.json.
  • Start work on dimensions parsing.