meters

Convert string distances to meters

npm install meters
2 downloads in the last week
4 downloads in the last month

meters

Converts string distances into meters.

var m = require('meters')
m('1 mile')
// 1609.34
m('5nm')
// 9260
m('1,200 yds')
// 1097.28
m('10cm')
// 0.1
m('6\'8"')
// 2.032

Install

With component or npm:

$ component install lvivier/meters

$ npm install meters

Usage

m(str)

Attempts to convert str into meters from common units.

npm loves you