KarelWintersky

KarelWintersky / GoogleFontDownloader

Last active 2 months ago

Like 0

KarelWintersky revised this gist 10 months ago · ea23af5

2 files changed, 407 insertions

google-font-downloader.js (file created)

Diff is too large to be shown

package.json (file created)
@@ -0,0 +1,85 @@
1 + {
2 + "bin": {
3 + "google-font-downloader": "bin/google-font-downloader.js"
4 + },
5 + "name": "google-font-downloader",
6 + "description": "Download Google fonts by providing the url",
7 + "keywords": [
8 + "google",
9 + "font",
10 + "downloader",
11 + "download",
12 + "fonts",
13 + "by",
14 + "providing",
15 + "the",
16 + "url"
17 + ],
18 + "license": "MIT",
19 + "version": "1.0.6",
20 + "main": "lib/index.js",
21 + "scripts": {
22 + "test": "echo \"Error: no test specified\" && exit 1"
23 + },
24 + "author": "Bloggify <support@bloggify.org> (https://bloggify.org)",
25 + "homepage": "https://github.com/Bloggify/google-font-downloader#readme",
26 + "files": [
27 + "bin/",
28 + "app/",
29 + "lib/",
30 + "dist/",
31 + "src/",
32 + "scripts/",
33 + "resources/",
34 + "menu/",
35 + "cli.js",
36 + "index.js",
37 + "bloggify.js",
38 + "bloggify.json"
39 + ],
40 + "repository": {
41 + "type": "git",
42 + "url": "git+ssh://git@github.com/Bloggify/google-font-downloader.git"
43 + },
44 + "bugs": {
45 + "url": "https://github.com/Bloggify/google-font-downloader/issues"
46 + },
47 + "dependencies": {
48 + "match-all": "^1.2.4",
49 + "streamp": "^2.2.8",
50 + "tilda": "^4.4.13",
51 + "tinyreq": "^3.4.0"
52 + },
53 + "blah": {
54 + "h_img": "https://i.imgur.com/arpGZH6.png",
55 + "description": [
56 + {
57 + "h4": "Usage"
58 + },
59 + {
60 + "p": "You can use this tool to download Google Fonts for offline use, just by providing the Google APIs url."
61 + },
62 + {
63 + "p": ":bulb: **Note**: It's not clear yet if Google Fonts are EU GDPR compliant (see [this issue](https://github.com/google/fonts/issues/1495)). This may be a good reason to download the Google Fonts you use on your server."
64 + },
65 + {
66 + "h4": "How it works"
67 + },
68 + {
69 + "p": "You need to provide the url to the Google APIs endpoint (e.g. `https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i`) and you will get the following files/directories in the current working directory:"
70 + },
71 + {
72 + "ul": [
73 + "A file named `google-fonts-<timestamp>.css`—this will contain the CSS snippets that you need to copy in your app. You may need to update the paths to the font files.",
74 + "A directory structure looking like this: `fonts/<font-name>/<version>/<font-file>`"
75 + ]
76 + },
77 + {
78 + "img": {
79 + "title": "Example",
80 + "source": "https://i.imgur.com/yGcOPKg.gif"
81 + }
82 + }
83 + ]
84 + }
85 + }