@apiverve/metadataextractor 1.1.10 → 1.1.12
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/index.d.ts +90 -1
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -7,10 +7,99 @@ declare module '@apiverve/metadataextractor' {
|
|
|
7
7
|
export interface metadataextractorResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: MetadataExtractorData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface MetadataExtractorData {
|
|
16
|
+
requestURL: string;
|
|
17
|
+
url: string;
|
|
18
|
+
canonical: string;
|
|
19
|
+
charset: string;
|
|
20
|
+
title: string;
|
|
21
|
+
image: string;
|
|
22
|
+
favicons: Favicon[];
|
|
23
|
+
author: string;
|
|
24
|
+
description: string;
|
|
25
|
+
keywords: string;
|
|
26
|
+
source: string;
|
|
27
|
+
price: string;
|
|
28
|
+
priceCurrency: string;
|
|
29
|
+
availability: string;
|
|
30
|
+
robots: string;
|
|
31
|
+
jsonld: any[];
|
|
32
|
+
ogURL: string;
|
|
33
|
+
ogLocale: string;
|
|
34
|
+
ogLocaleAlternate: string;
|
|
35
|
+
ogTitle: string;
|
|
36
|
+
ogType: string;
|
|
37
|
+
ogDescription: string;
|
|
38
|
+
ogDeterminer: string;
|
|
39
|
+
ogSiteName: string;
|
|
40
|
+
ogImage: string;
|
|
41
|
+
ogImageSecureURL: string;
|
|
42
|
+
ogImageType: string;
|
|
43
|
+
ogImageWidth: string;
|
|
44
|
+
ogImageHeight: string;
|
|
45
|
+
twitterTitle: string;
|
|
46
|
+
twitterDescription: string;
|
|
47
|
+
twitterImage: string;
|
|
48
|
+
twitterImageAlt: string;
|
|
49
|
+
twitterCard: string;
|
|
50
|
+
twitterSite: string;
|
|
51
|
+
twitterSiteID: string;
|
|
52
|
+
twitterURL: string;
|
|
53
|
+
twitterAccountID: string;
|
|
54
|
+
twitterCreator: string;
|
|
55
|
+
twitterCreatorID: string;
|
|
56
|
+
twitterPlayer: string;
|
|
57
|
+
twitterPlayerWidth: string;
|
|
58
|
+
twitterPlayerHeight: string;
|
|
59
|
+
twitterPlayerStream: string;
|
|
60
|
+
twitterAppNameIphone: string;
|
|
61
|
+
twitterAppIDIphone: string;
|
|
62
|
+
twitterAppURLIphone: string;
|
|
63
|
+
twitterAppNameIpad: string;
|
|
64
|
+
twitterAppIDIpad: string;
|
|
65
|
+
twitterAppURLIpad: string;
|
|
66
|
+
twitterAppNameGoogleplay: string;
|
|
67
|
+
twitterAppIDGoogleplay: string;
|
|
68
|
+
twitterAppURLGoogleplay: string;
|
|
69
|
+
headings: Heading[];
|
|
70
|
+
imgTags: ImgTag[];
|
|
71
|
+
responseBody: string;
|
|
72
|
+
fbAppID: string;
|
|
73
|
+
msapplicationTileColor: string;
|
|
74
|
+
msapplicationTileImage: string;
|
|
75
|
+
pDomainVerify: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface Favicon {
|
|
79
|
+
rel: string;
|
|
80
|
+
href: string;
|
|
81
|
+
sizes?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface Heading {
|
|
85
|
+
level: Level;
|
|
86
|
+
text: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
enum Level {
|
|
90
|
+
H1 = "h1",
|
|
91
|
+
H2 = "h2",
|
|
92
|
+
H3 = "h3",
|
|
93
|
+
H4 = "h4",
|
|
94
|
+
H5 = "h5",
|
|
95
|
+
H6 = "h6",
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface ImgTag {
|
|
99
|
+
src: string;
|
|
100
|
+
alt?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
14
103
|
export default class metadataextractorWrapper {
|
|
15
104
|
constructor(options: metadataextractorOptions);
|
|
16
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/metadataextractor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Metadata Extractor is a simple tool for extracting metadata from web pages. It returns the meta title, meta description, and more.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/apiverve/metadataextractor-
|
|
13
|
+
"url": "git+https://github.com/apiverve/metadataextractor-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"metadata extractor", "metadata extraction", "metadata extractor api", "metadata extraction api", "metadata extractor tool"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/apiverve/metadataextractor-
|
|
22
|
+
"url": "https://github.com/apiverve/metadataextractor-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/metadataextractor?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|