See Font Variation Description for more details.
Install with npm:
$ npm install fvd
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 }
Install the dependencies and run:
$ npm test
MIT License, see LICENSE for details.