A complete list of Google Fonts and their sources
npm install google-fonts-completeA complete list of Google Fonts and their sources.
`` js
var fonts = require('google-fonts-complete');
console.dir(fonts);
`
yields
` json`
{
"ABeeZee": {
"category": "sans-serif",
"lastModified": "2015-04-06",
"version": "v4",
"variants": {
...
}
},
...
}
This list is generated from the [Google Fonts API].
Create the api-response.json using a script:`sh`
npm run generateList {YOUR_API_KEY}api-response.json
Or use the [Google Fonts API] to create manually.
Then, use the generator to create google-fonts.json.
`sh`
npm run generateFonts
or
`sh``
node ./google-fonts-generator.js
[Google Fonts API]: https://developers.google.com/fonts/