parse-css-font
Parses the CSS font property.
Installation
$ npm install parse-css-font [--save[-dev]]
Usage
const parseCSSFont = /*{ size: '1rem', family: ['Roboto Condensed', 'sans-serif'], style: 'normal', variant: 'normal', weight: 'normal', stretch: 'normal', lineHeight: 'normal'}*/
See the tests for more scenarios.
ES6/2015 import
Testing
$ npm test
This will run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.