An open API service indexing awesome lists of open source software.

https://github.com/percolate/fvd

Font Variation Description for JavaScript
https://github.com/percolate/fvd

Last synced: over 1 year ago
JSON representation

Font Variation Description for JavaScript

Awesome Lists containing this project

README

          

# fvd

[![Build Status](https://circleci.com/gh/percolate/fvd.png?circle-token=d8514e93933f9eedca564123124444aa69ff6a11)](https://circleci.com/gh/percolate/fvd)

## Font Variation Description for JavaScript

See [Font Variation Description](https://github.com/typekit/fvd) for more details.

## Installation

Install with npm:

```
$ npm install fvd
```

## Usage

```js
var fvd = require('fvd')

fvd.compact('font-weight:bold;font-style:italic;')
// 'i7'

fvd.expand('i7')
// 'font-style:italic;font-weight:700;'

fvd.parse('i7')
// { 'font-style': 'italic', 'font-weight': 700 }
```

## Tests

Install the dependencies and run:

```
$ npm test
```

## License

MIT License, see [LICENSE](https://github.com/percolate/fvd/blob/master/LICENSE.md) for details.