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

mapbox-to-css-font

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-to-css-font

Utility to convert Mapbox GL Style font names to CSS font definitions


Version published
Weekly downloads
153K
increased by2.74%
Maintainers
1
Weekly downloads
 
Created
Source

Mapbox to CSS Font

Utility to convert Mapbox GL Style font names to CSS compatible font definitions.

Usage

var parseFont = require('mapbox-to-css-font');
parseFont('Open Sans Regular', 16);
// returns 'normal 400 16px Open Sans'

API

Parameters

  • font string Mapbox GL Style font name, e.g. 'Open Sans Regular'.

  • size number Font size in pixels.

Returns string CSS font definition, e.g. 'normal 400 16px Open Sans'.

Keywords

FAQs

Package last updated on 15 Nov 2017

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