Socket
Socket
Sign inDemoInstall

@fontsource-utils/cli

Package Overview
Dependencies
196
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fontsource-utils/cli

Fontsource CLI


Version published
Weekly downloads
70
increased by1650%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Fontsource CLI

The Fontsource CLI allows users to build fontsource packages locally as well as create new packages for submissions. For metadata, it uses Google Font Metadata.

Getting Started

npm install @fontsource-utils/cli google-font-metadata

Commands

fontsource create

Builds a new fontsource package from a template for submission.

Usage

npx fontsource create

fontsource create-verify

Verifies that a fontsource package is valid and ready for submission.

Usage

npx fontsource create-verify [options]

Options

OptionDescriptionDefault
-i, --idDirectory to verify package e.g. ./[id]Prompts user instead
--ciDisables fancy promptsfalse
--cwdSets the current working directoryprocess.cwd()

fontsource fetch

Fetches the latest metadata from Google Fonts.

Usage

npx fontsource fetch [key] [options]
  • Key is the Google Fonts API key. If not provided, it will be read from the environment variable GOOGLE_API_KEY.

Options

OptionDescriptionDefault
-f, --forceForce parse all metadata without cachefalse

fontsource build

Builds all Google Fonts packages from the metadata generated from fontsource fetch.

Usage

npx fontsource build [...fonts] [options]
  • Fonts is a list of font ids to build. If not provided, it will build all fonts.

Options

OptionDescriptionDefault
-f, --forceForce rebuild all packages from scratchfalse
-t, --testGenerate a small number of packages for testingfalse
--ttfDownload TTF/OTF font filesfalse

License

MIT

Keywords

FAQs

Last updated on 20 Apr 2024

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