font-family

CSS font-family parser/stringifier

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
font-family
410.2.09 years ago9 years agoMinified + gzip package size for font-family in KB

Readme

font-family Build Status
CSS font-family parser/stringifier.

Example

var parse = require('font-family').parse;

parse('"Helvetica Neue", Helvetica, sans-serif');
// => [ 'Helvetica Neue', 'Helvetica', 'sans-serif' ]

var stringify = require('font-family').stringify;

stringify(['Helvetica Neue', 'Helvetica', 'sans-serif']);
// => '"Helvetica Neue", Helvetica, sans-serif'

License

MIT