Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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