@saxx/font-styler 1.0.0 → 1.0.1
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.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Font Styler is a simple and flexible Node.js library that allows you to fetch and apply custom font styles to text using the FontGen API. This library is perfect for creating stylized text for applications, websites, or any project requiring custom fonts.
|
4
4
|
|
5
|
-

|
6
|
-

|
7
|
-

|
5
|
+

|
6
|
+

|
7
|
+

|
8
8
|
|
9
9
|
## Features
|
10
10
|
|
@@ -15,15 +15,15 @@ Font Styler is a simple and flexible Node.js library that allows you to fetch an
|
|
15
15
|
|
16
16
|
## 📊 Statistics
|
17
17
|
|
18
|
-
- **Total Downloads**: 
|
19
|
-
- **Weekly Downloads**: 
|
18
|
+
- **Total Downloads**: 
|
19
|
+
- **Weekly Downloads**: 
|
20
20
|
|
21
21
|
## Installation
|
22
22
|
|
23
23
|
To install the library, use npm:
|
24
24
|
|
25
25
|
```bash
|
26
|
-
npm install font-styler@latest
|
26
|
+
npm install @saxx/font-styler@latest
|
27
27
|
```
|
28
28
|
|
29
29
|
## Usage
|
@@ -33,13 +33,13 @@ Here’s a quick example of how to use Font Styler:
|
|
33
33
|
### Importing the Library
|
34
34
|
|
35
35
|
```javascript
|
36
|
-
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('font-styler');
|
36
|
+
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('@saxx/font-styler');
|
37
37
|
```
|
38
38
|
|
39
39
|
### Applying a Font Style to Text
|
40
40
|
|
41
41
|
```javascript
|
42
|
-
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('font-styler');
|
42
|
+
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('@saxx/font-styler');
|
43
43
|
|
44
44
|
fontStyle('hello', 'monospace').then(result => {
|
45
45
|
console.log("Styled Text:", result);
|
@@ -51,7 +51,7 @@ fontStyle('hello', 'monospace').then(result => {
|
|
51
51
|
### Fetching All Available Fonts
|
52
52
|
|
53
53
|
```javascript
|
54
|
-
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('font-styler');
|
54
|
+
const { fontStyle, applyFont, fontStyler, getFontStyle, allFont, listFont, getAllFonts, fetchFonts } = require('@saxx/font-styler');
|
55
55
|
|
56
56
|
allFont().then(result => {
|
57
57
|
console.log("Available Fonts:", result);
|