@apiverve/urltitle 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/README.md CHANGED
@@ -59,7 +59,7 @@ Using the API is simple. All you have to do is make a request. The API will retu
59
59
 
60
60
  ```javascript
61
61
  var query = {
62
- "url": "https://www.nytimes.com/2024/08/21/business/google-california-news-funding.html"
62
+ "url": "https://blog.apiverve.com/chuck-norris-api-how-to"
63
63
  };
64
64
 
65
65
  api.execute(query, function (error, data) {
@@ -79,7 +79,7 @@ You can also use promises to make requests. The API returns a promise that you c
79
79
 
80
80
  ```javascript
81
81
  var query = {
82
- "url": "https://www.nytimes.com/2024/08/21/business/google-california-news-funding.html"
82
+ "url": "https://blog.apiverve.com/chuck-norris-api-how-to"
83
83
  };
84
84
 
85
85
  api.execute(query)
@@ -100,7 +100,7 @@ You can also use async/await to make requests. The API returns a promise that yo
100
100
  ```javascript
101
101
  async function makeRequest() {
102
102
  var query = {
103
- "url": "https://www.nytimes.com/2024/08/21/business/google-california-news-funding.html"
103
+ "url": "https://blog.apiverve.com/chuck-norris-api-how-to"
104
104
  };
105
105
 
106
106
  try {
package/examples/basic.js CHANGED
@@ -15,7 +15,7 @@ const api = new urltitleAPI({
15
15
 
16
16
  // Example query
17
17
  var query = {
18
- "url": "https://www.nytimes.com/2024/08/21/business/google-california-news-funding.html"
18
+ "url": "https://blog.apiverve.com/chuck-norris-api-how-to"
19
19
  };
20
20
 
21
21
  // Make the API request using callback
package/index.d.ts CHANGED
@@ -7,10 +7,16 @@ declare module '@apiverve/urltitle' {
7
7
  export interface urltitleResponse {
8
8
  status: string;
9
9
  error: string | null;
10
- data: any;
10
+ data: URLTitleData;
11
11
  code?: number;
12
12
  }
13
13
 
14
+
15
+ interface URLTitleData {
16
+ title: string;
17
+ h1: string[];
18
+ }
19
+
14
20
  export default class urltitleWrapper {
15
21
  constructor(options: urltitleOptions);
16
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/urltitle",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "URL Title is a simple tool for getting the title of a web page. It returns the title of the web page based on the URL provided.",
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/urltitle-API.git"
13
+ "url": "git+https://github.com/apiverve/urltitle-api.git",
14
+ "directory": "npm"
14
15
  },
15
16
  "keywords": [
16
17
  "url title", "url title api", "url title tool", "url title software", "url title service"
@@ -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/urltitle-API/issues"
22
+ "url": "https://github.com/apiverve/urltitle-api/issues"
22
23
  },
23
24
  "homepage": "https://apiverve.com/marketplace/urltitle?utm_source=npm",
24
25
  "devDependencies": {