<commit_before>[![Travis CI status](https://img.shields.io/travis/alexdunphy/units.svg)](https://travis-ci.org/alexdunphy/units)
[![Coveralls status](https://img.shields.io/coveralls/alexdunphy/units.svg)](https://coveralls.io/r/alexdunphy/units)
[![dependencies status](https://img.shields.io/david/alexdunphy/units.svg)](https://david-dm.org/alexdunphy/units)
[![devDependencies status](https://img.shields.io/david/dev/alexdunphy/units.svg)](https://david-dm.org/alexdunphy/units#info=devDependencies)

[![Sauce Labs status](https://saucelabs.com/browser-matrix/units-css.svg)](https://saucelabs.com/u/units-css)

# Units

Parse length and angle CSS values and convert between units.

#### Supported units:

**Length:** `%, ch, cm, em, ex, in, mm, pc, pt, px, rem, vh, vmax, vmin, vw`
**Angle:** `deg, grad, rad, turn`

## Install

**Bower:** `bower install -S units-css`

**npm:** `npm i -S units-css`

---

One object is exported:

```javascript
var units = require('units-css');
```

## API

### #parse(value, property)<commit_msg>Format docs<commit_after>[![Travis CI status](https://img.shields.io/travis/alexdunphy/units.svg)](https://travis-ci.org/alexdunphy/units)
[![Coveralls status](https://img.shields.io/coveralls/alexdunphy/units.svg)](https://coveralls.io/r/alexdunphy/units)
[![dependencies status](https://img.shields.io/david/alexdunphy/units.svg)](https://david-dm.org/alexdunphy/units)
[![devDependencies status](https://img.shields.io/david/dev/alexdunphy/units.svg)](https://david-dm.org/alexdunphy/units#info=devDependencies)

[![Sauce Labs status](https://saucelabs.com/browser-matrix/units-css.svg)](https://saucelabs.com/u/units-css)

# Units

Parse length and angle CSS values and convert between units.

#### Supported units:

**Length:** `%, ch, cm, em, ex, in, mm, pc, pt, px, rem, vh, vmax, vmin, vw`

**Angle:** `deg, grad, rad, turn`

## Install

**Bower:** `bower install -S units-css`

**npm:** `npm i -S units-css`

(One object is exported:)

```javascript
var units = require('units-css');
```

## API

### #parse(value, property)
{'fraction_non_alphanumeric': 0.20821256038647343, 'fraction_numerical': 0.0, 'mean_word_length': 5.200598802395209, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1904711', 'n_tokens_mistral': 829, 'n_tokens_neox': 773, 'n_words': 134}