Got Google web fonts by its names
$ npm install --save got-google-fonts
const googleFontDownload = require('got-google-fonts');
googleFontDownload(process.cwd(), 'Roboto', {
subset: 'greek'
variant: 'italic'
}).then(files => {
console.log('Will returns those of files downloaded at dest', files);
});
The path to download
The name of the family
You can use all of options about Google web fonts APIs except kind
which is not alterable, default is webfonts#webfont
. It will be passed into querystring.
The script supported by the family.
The style available for the family
The font family version. ex) v3
The date (format "yyyy-MM-dd") the font family was modified for the last time.
JSON of the font family files for each one of the available variants.
MIT © Jimmy Moon