Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanamura/font-family
CSS font-family parser/stringifier.
https://github.com/hanamura/font-family
css font parser utility
Last synced: 24 days ago
JSON representation
CSS font-family parser/stringifier.
- Host: GitHub
- URL: https://github.com/hanamura/font-family
- Owner: hanamura
- License: mit
- Created: 2015-02-11T13:00:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T23:26:18.000Z (over 4 years ago)
- Last Synced: 2024-12-12T00:53:08.325Z (27 days ago)
- Topics: css, font, parser, utility
- Language: JavaScript
- Homepage:
- Size: 211 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# font-family [![Build Status](https://travis-ci.org/hanamura/font-family.svg?branch=master)](https://travis-ci.org/hanamura/font-family)
CSS font-family parser/stringifier.
## Installation
```sh
npm install font-family
```## Example
```javascript
var parse = require('font-family').parse;parse('"Helvetica Neue", Helvetica, sans-serif');
// => [ 'Helvetica Neue', 'Helvetica', 'sans-serif' ]
``````javascript
var stringify = require('font-family').stringify;stringify(['Helvetica Neue', 'Helvetica', 'sans-serif']);
// => '"Helvetica Neue", Helvetica, sans-serif'
```## License
MIT