Socket
Socket
Sign inDemoInstall

css-font-parser-papandreou

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-font-parser-papandreou

A parser for the CSS font value


Version published
Weekly downloads
2K
increased by5.77%
Maintainers
1
Install size
21.9 kB
Created
Weekly downloads
 

Readme

Source

CSS font value parser

browser support

A simple parser for parsing CSS font values in JavaScript.

Installation

If you are using Node.js you can install the parser using:

$ npm install css-font-parser

If you are using an AMD loader you can include the src/parser.js directly into your project.

Usage

> var parse = require('css-font-parser');
> parse('15px sans-serif');

{
  'font-family': ['sans-serif'],
  'font-size': '15px'
}

> parse('15px/18px "Neue Helvetica", Helvetica, sans-serif');

{
  'font-family': ['Neue Helvetica', 'Helvetica', 'sans-serif'],
  'font-size': '15px',
  'line-height': '18px'
}

License

Licensed under the three-clause BSD license.

Keywords

FAQs

Last updated on 09 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc