# dsto

> Dimension String To Object

Latest version **1.0.5** (published 2017-07-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install dsto
pnpm add dsto
yarn add dsto
bun add dsto
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-07-28 |
| First published | 2017-07-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bhumilsarvaiya |
| Maintainers | bhumilsarvaiya |

## Links

- npm: https://www.npmjs.com/package/dsto
- Repository: https://github.com/bhumilsarvaiya/DSTO
- Homepage: https://github.com/bhumilsarvaiya/DSTO#readme
- Issues: https://github.com/bhumilsarvaiya/DSTO/issues
- npm.io page: https://npm.io/package/dsto

## Recent versions

- 1.0.5 (latest) — 2017-07-28
- 1.0.4 — 2017-07-28
- 1.0.3 — 2017-07-28
- 1.0.2 — 2017-07-28
- 1.0.1 — 2017-07-28
- 1.0.0 — 2017-07-28

## README

# Usage

## Installation

```bash
npm install dsto
```

## Quick Example

```javascript
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

---
_Source: https://npm.io/package/dsto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
