1.0.5 • Published 7 years ago

dsto v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Usage

Installation

npm install dsto

Quick Example

var dsto = require('dsto');

var obj1 = dsto.convert('30cmx40cm m');
console.log(obj1);
//output: { data: [0.3, 0.4], format: 'm' }

var obj2 = dsto.convert('30cmx40mx50km m');
console.log(obj2);
//output: { data: [0.3, 40, 50000], format: 'm' }

var obj3 = dsto.convert('30\'x40\'x50\' in');
console.log(obj3);
//output: { data: [ 11.811, 15.748, 19.685 ], format: 'in' }

Currently supported units

cm: centimeter, m: meter, km: kilometer, ft: feet, in: inch, ': centimeter, ": inch

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago