Socket
Socket
Sign inDemoInstall

youtube.ts

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube.ts - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

14

dist/index.js

@@ -46,3 +46,3 @@ "use strict";

(function () { return __awaiter(void 0, void 0, void 0, function () {
var cookie, key;
var cookie, key, c;
return __generator(this, function (_a) {

@@ -53,12 +53,6 @@ switch (_a.label) {

key = "lJGPgo6rkJXi8_l2BUDvkNOJM2V8MTU3MTg5MzMwM0AxNTcxODA2OTAz";
// await youtube.util.downloadMyVideo("mLJQ0HO5Alc", key, cookie, "./videos")
// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi")
return [4 /*yield*/, youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad")
// await youtube.util.downloadChannelVideos("UC8qU4aFe81jzG1attsyQ5wQ", "./videos/tenpi")
// console.log(result.items[0])
];
return [4 /*yield*/, youtube.videos.comments("https://www.youtube.com/watch?v=cZDsFjEmlDg")];
case 1:
// await youtube.util.downloadMyVideo("mLJQ0HO5Alc", key, cookie, "./videos")
// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi")
_a.sent();
c = _a.sent();
console.log(c);
return [2 /*return*/];

@@ -65,0 +59,0 @@ }

@@ -26,4 +26,4 @@ import { YoutubeThumbnail } from "./index";

high: YoutubeThumbnail;
standard: YoutubeThumbnail;
maxres: YoutubeThumbnail;
standard?: YoutubeThumbnail;
maxres?: YoutubeThumbnail;
};

@@ -30,0 +30,0 @@ channelTitle: string;

@@ -44,4 +44,4 @@ export interface YoutubeVideo {

high: YoutubeThumbnail;
standard: YoutubeThumbnail;
maxres: YoutubeThumbnail;
standard?: YoutubeThumbnail;
maxres?: YoutubeThumbnail;
};

@@ -48,0 +48,0 @@ channelTitle: string;

@@ -17,5 +17,7 @@ import Youtube from "./Youtube"

// await youtube.util.downloadMyVideos("tenpi", key, cookie, "./videos/tenpi")
await youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad")
// await youtube.util.downloadMP3("mLJQ0HO5Alc", "./videos/ytdl/bad")
// await youtube.util.downloadChannelVideos("UC8qU4aFe81jzG1attsyQ5wQ", "./videos/tenpi")
// console.log(result.items[0])
const c = await youtube.videos.comments("https://www.youtube.com/watch?v=cZDsFjEmlDg")
console.log(c)
})()
{
"name": "youtube.ts",
"version": "0.0.2",
"version": "0.0.3",
"description": "Wrapper for the YouTube API with typings.",

@@ -5,0 +5,0 @@ "main": "dist/youtube.js",

@@ -28,4 +28,4 @@ import {YoutubeThumbnail} from "./index"

high: YoutubeThumbnail
standard: YoutubeThumbnail
maxres: YoutubeThumbnail
standard?: YoutubeThumbnail
maxres?: YoutubeThumbnail
},

@@ -32,0 +32,0 @@ channelTitle: string

@@ -48,4 +48,4 @@ export interface YoutubeVideo {

high: YoutubeThumbnail
standard: YoutubeThumbnail
maxres: YoutubeThumbnail
standard?: YoutubeThumbnail
maxres?: YoutubeThumbnail
},

@@ -52,0 +52,0 @@ channelTitle: string

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc