Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fvd

percolate272MIT1.0.0

Font Variation Description for JavaScript

fvd, font, variation, description

readme

fvd

Build Status

Font Variation Description for JavaScript

See Font Variation Description for more details.

Installation

Install with npm:

$ npm install fvd

Usage

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 for details.