Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tinycreek/google-fonts-complete

TinyCreek26CC0-1.03.0.0

A complete list of Google Fonts and their sources

google, web, fonts, complete, families, family, styles, variants, weights, unicode-range

readme

Google Fonts Complete (Tiny Creek fork)

This fork exists to update the PostCSS dependency to resolve a Dependabot alert.

A complete list of Google Fonts and their sources.

Usage

var fonts = require('google-fonts-complete');

console.dir(fonts);

yields

{
    "ABeeZee": {
        "category": "sans-serif",
        "lastModified": "2015-04-06",
        "version": "v4",
        "variants": {
            ...
        }
    },
    ...
}

This list is generated from the Google Fonts API.

Using the generator

Create the api-response.json using a script:

npm run generateList {YOUR_API_KEY}

Or use the Google Fonts API to create api-response.json manually.

Then, use the generator to create google-fonts.json.

npm run generateFonts

or

node ./google-fonts-generator.js