From 7e87a3210c0243f82bc9d290e4a9d390a3b517bf Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 13 Aug 2021 23:17:59 +0530 Subject: [PATCH] Package updated --- node-youtube-dl/Spotify/index.ts | 4 ---- node-youtube-dl/Stream/stream.ts | 10 ++++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 node-youtube-dl/Spotify/index.ts create mode 100644 node-youtube-dl/Stream/stream.ts diff --git a/node-youtube-dl/Spotify/index.ts b/node-youtube-dl/Spotify/index.ts deleted file mode 100644 index f6bb312..0000000 --- a/node-youtube-dl/Spotify/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -//Spotify Work -import stream from 'stream' - -console.log(new stream.PassThrough()) \ No newline at end of file diff --git a/node-youtube-dl/Stream/stream.ts b/node-youtube-dl/Stream/stream.ts new file mode 100644 index 0000000..c6563da --- /dev/null +++ b/node-youtube-dl/Stream/stream.ts @@ -0,0 +1,10 @@ +import { RequestOptions, IncomingMessage, ClientRequest, default as http } from 'http'; +import { EventEmitter } from 'node:events' +import { URL } from 'url' +import https from 'https'; + +const httpLibs: { + [key: string]: { + request: (options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void) => ClientRequest; + }; + } = { 'http:': http, 'https:': https }; \ No newline at end of file diff --git a/package.json b/package.json index d55a00a..2f291fd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "node-youtube-dl-v2", + "name": "play-dl", "version": "0.0.1", "description": "YouTube, SoundCloud, Spotify downloader", "main": "dist/index.js",