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.
- package/README.md +8 -6
- 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('
|
24
|
-
console.log('
|
25
|
-
console.log('
|
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('
|
62
|
-
console.log('
|
63
|
-
console.log('
|
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
|
});
|