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",