@tiwz/fontawesome 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +62 -0
  2. package/dist/index.js +54 -0
  3. package/package.json +48 -0
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # @tiwz/fontawesome
2
+
3
+ Download and self-host Font Awesome automatically.
4
+
5
+ Supports:
6
+
7
+ - Next.js App Router
8
+ - Next.js Pages Router
9
+ - Vite
10
+ - React
11
+
12
+ ## Usage
13
+
14
+ ```bash
15
+ npx @tiwz/fontawesome
16
+ ```
17
+
18
+ or
19
+
20
+ ```bash
21
+ bunx @tiwz/fontawesome
22
+ ```
23
+
24
+ ## Output
25
+
26
+ ```txt
27
+ public/assets/media/*
28
+ src/app/fontawesome.css
29
+ ```
30
+
31
+ or
32
+
33
+ ```txt
34
+ public/assets/media/*
35
+ src/styles/fontawesome.css
36
+ ```
37
+
38
+ depending on your project structure.
39
+
40
+ ## Import CSS
41
+
42
+ ### Next.js App Router
43
+
44
+ ```ts
45
+ import './fontawesome.css'
46
+ ```
47
+
48
+ ### Next.js Pages Router
49
+
50
+ ```ts
51
+ import '@/styles/fontawesome.css'
52
+ ```
53
+
54
+ ### Vite / React
55
+
56
+ ```ts
57
+ import './fontawesome.css'
58
+ ```
59
+
60
+ ## License
61
+
62
+ MIT