Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/raykov/css-font-parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/raykov/css-font-parser

  • v0.3.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

CSS font value parser

Go port of CSS font value parser

A simple parser for parsing CSS font values.

import (
	"fmt"

	"github.com/raykov/css-font-parser"
)

data := cfp.Parse(`italic small-caps bold 12px/30px Georgia, serif`)

fmt.Printf("%#v", data)

/*
&cfp.Font{
	Family:[]string{"Georgia", "serif"},
	Size:"12px",
	Style:"italic",
	Variant:"small-caps",
	Weight:"bold",
	Stretch:"",
	LineHeight:"30px",
}
*/

License

Licensed under the three-clause BSD license.

FAQs

Package last updated on 30 Mar 2022

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