kyle-yt 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,9 +20,10 @@ const kyleYT = new KyleYT();
20
20
  // Example usage: search for a video
21
21
  kyleYT.search('The Weeknd - Save Your Tears (Official Music Video)').then(result => {
22
22
  let video = result.items[0];
23
- console.log('Title: ' + song.title);
24
- console.log('ID: ' + song.id);
25
- console.log('URL: ' + video.url);
23
+ console.log('Id: ' + video.id);
24
+ console.log('Url: ' + video.url);
25
+ console.log('Name: ' + video.name);
26
+ console.log('Views: ' + video.views);
26
27
  }).catch(error => {
27
28
  console.error('Error:', error);
28
29
  });
@@ -58,9 +59,10 @@ const kyleYT = new KyleYT();
58
59
 
59
60
  kyleYT.search('The Weeknd - Save Your Tears (Official Music Video)').then(result => {
60
61
  let video = result.items[0];
61
- console.log('Title: ' + song.title);
62
- console.log('ID: ' + song.id);
63
- console.log('URL: ' + video.url);
62
+ console.log('Id: ' + video.id);
63
+ console.log('Url: ' + video.url);
64
+ console.log('Name: ' + video.name);
65
+ console.log('Views: ' + video.views);
64
66
  }).catch(error => {
65
67
  console.error('Error:', error);
66
68
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "undici": "^6.10.1"
4
4
  },
5
5
  "name": "kyle-yt",
6
- "version": "2.1.0",
6
+ "version": "2.1.1",
7
7
  "main": "KyleYT.js",
8
8
  "devDependencies": {},
9
9
  "scripts": {