postcss-font-helpers
Font helpers for PostCSS.
Installation
$ npm install postcss-font-helpers [--save[-dev]]
Usage
var postcss = ;var font = ; var rule = postcssfirst; // Get all props; /*{ size: ".8rem", line-height: 1.2, family: ["serif"]}*/ // Get individual propsfontlineHeightrule; // 1.2fontsizerule; // ".8rem"font; // ["serif"]
See the tests for more scenarios.
Testing
$ npm test
This will run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.