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
- Host: GitHub
- URL: https://github.com/percolate/fvd
- Owner: percolate
- License: mit
- Created: 2013-10-01T16:11:40.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T17:41:41.000Z (over 3 years ago)
- Last Synced: 2025-04-12T19:08:43.025Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 9
- Watchers: 72
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fvd
[](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.