New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-font-parser-papandreou

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-font-parser-papandreou

A parser for the CSS font value

  • 0.2.3-patch1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 09 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc