@apiverve/websitereadability 1.1.14 → 1.2.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.
- package/README.md +5 -0
- package/index.d.ts +27 -10
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -131,6 +131,11 @@ async function makeRequest() {
|
|
|
131
131
|
"automatedReadabilityIndex": 22.6,
|
|
132
132
|
"daleChallReadabilityScore": 17,
|
|
133
133
|
"daleChallReadabilityScoreText": "average 13th to 15th-grade (college) student",
|
|
134
|
+
"wordCount": 634,
|
|
135
|
+
"sentenceCount": 29,
|
|
136
|
+
"readingTimeMinutes": 3,
|
|
137
|
+
"averageGradeLevel": 17.8,
|
|
138
|
+
"targetAudience": "post-graduate",
|
|
134
139
|
"url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"
|
|
135
140
|
}
|
|
136
141
|
}
|
package/index.d.ts
CHANGED
|
@@ -4,25 +4,42 @@ declare module '@apiverve/websitereadability' {
|
|
|
4
4
|
secure?: boolean;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Describes fields the current plan does not unlock. Locked fields arrive as null
|
|
9
|
+
* in `data`; `locked_fields` names them, using dot paths for nested fields.
|
|
10
|
+
* Absent when the plan unlocks everything.
|
|
11
|
+
*/
|
|
12
|
+
export interface PremiumInfo {
|
|
13
|
+
message: string;
|
|
14
|
+
upgrade_url: string;
|
|
15
|
+
locked_fields: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
export interface websitereadabilityResponse {
|
|
8
19
|
status: string;
|
|
9
20
|
error: string | null;
|
|
10
21
|
data: WebsiteReadabilityData;
|
|
11
22
|
code?: number;
|
|
23
|
+
premium?: PremiumInfo;
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
|
|
15
27
|
interface WebsiteReadabilityData {
|
|
16
|
-
fleschReadingEase: number;
|
|
17
|
-
fleschReadingEaseText: string;
|
|
18
|
-
fleschKincaidGrade: number;
|
|
19
|
-
gunningFog: number;
|
|
20
|
-
colemanLiauIndex: number;
|
|
21
|
-
smogIndex: number;
|
|
22
|
-
automatedReadabilityIndex: number;
|
|
23
|
-
daleChallReadabilityScore: number;
|
|
24
|
-
daleChallReadabilityScoreText: string;
|
|
25
|
-
|
|
28
|
+
fleschReadingEase: number | null;
|
|
29
|
+
fleschReadingEaseText: null | string;
|
|
30
|
+
fleschKincaidGrade: number | null;
|
|
31
|
+
gunningFog: number | null;
|
|
32
|
+
colemanLiauIndex: number | null;
|
|
33
|
+
smogIndex: number | null;
|
|
34
|
+
automatedReadabilityIndex: number | null;
|
|
35
|
+
daleChallReadabilityScore: number | null;
|
|
36
|
+
daleChallReadabilityScoreText: null | string;
|
|
37
|
+
wordCount: number | null;
|
|
38
|
+
sentenceCount: number | null;
|
|
39
|
+
readingTimeMinutes: number | null;
|
|
40
|
+
averageGradeLevel: number | null;
|
|
41
|
+
targetAudience: null | string;
|
|
42
|
+
url: null | string;
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
export default class websitereadabilityWrapper {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/websitereadability",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Website Readability is a simple tool for analyzing the readability of a website. It returns the readability score of the website provided.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"directory": "npm"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
|
-
""
|
|
26
|
+
"website readability", "website readability api", "website readability tool", "website readability software", "website readability service"
|
|
27
27
|
],
|
|
28
28
|
"author": {
|
|
29
29
|
"name": "APIVerve",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"dotenv": "^16.4.7"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"axios": "1.13.2"
|
|
44
|
+
"axios": "1.13.2",
|
|
45
|
+
"form-data": "^4.0.1"
|
|
47
46
|
}
|
|
48
47
|
}
|