0.4.2 • Published 1 month ago

@fontsource-utils/cli v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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

0.4.2

1 month ago

0.4.1

6 months ago

0.3.17

8 months ago

0.3.15

10 months ago

0.3.14

11 months ago

0.3.19

8 months ago

0.3.18

8 months ago

0.3.13

12 months ago

0.3.12

12 months ago

0.3.9

12 months ago

0.2.0-beta.20

1 year ago

0.2.0-beta.21

1 year ago

0.2.0-beta.22

1 year ago

0.2.0-beta.23

1 year ago

0.2.0-beta.24

1 year ago

0.2.0-beta.25

1 year ago

0.2.0-beta.26

1 year ago

0.2.0-beta.27

1 year ago

0.3.0

1 year ago

0.2.0-beta.10

1 year ago

0.2.0-beta.11

1 year ago

0.3.6

1 year ago

0.2.0-beta.12

1 year ago

0.3.5

1 year ago

0.2.0-beta.13

1 year ago

0.3.8

12 months ago

0.2.0-beta.14

1 year ago

0.3.7

1 year ago

0.2.0-beta.15

1 year ago

0.3.2

1 year ago

0.2.0-beta.16

1 year ago

0.3.1

1 year ago

0.2.0-beta.17

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.0-beta.19

1 year ago

0.2.0-beta.9

1 year ago

0.2.0-beta.8

1 year ago

0.2.0-beta.7

1 year ago

0.2.0-beta.6

1 year ago

0.2.0-beta.5

1 year ago

0.2.0-beta.4

1 year ago

0.2.0-beta.3

1 year ago

0.2.0-beta.2

1 year ago

0.2.0-beta.1

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago