Various README updates
This commit is contained in:
parent
2398cab6a3
commit
f8737d60d9
38
README.md
38
README.md
@ -1,31 +1,53 @@
|
|||||||
# Play-dl
|
# Play-dl
|
||||||
A **light-weight** youtube, soundcloud, spotify, deezer downloader and searcher.
|
|
||||||
|
|
||||||
- searches by video, playlist, channel
|
A **light-weight** YouTube, SoundCloud, Spotify and Deezer streaming and searching library.
|
||||||
- obtains audio playback url
|
|
||||||
|
- Search by video, playlist/album, channel/artist
|
||||||
|
- Stream audio from YouTube and SoundCloud
|
||||||
|
|
||||||
# Why play-dl ?
|
# Why play-dl ?
|
||||||
|
|
||||||
[ytdl-core](https://github.com/fent/node-ytdl-core) has some issues with miniget and also stream abort issues. On the other hand, [youtube-dl](https://github.com/ytdl-org/youtube-dl) is a very perfect alternative but it takes time to launch. Hence, play-dl is created to avoid these issues along with providing comparatively faster performance than others.
|
[ytdl-core](https://github.com/fent/node-ytdl-core) has some issues with miniget and also stream abort issues. On the other hand, [youtube-dl](https://github.com/ytdl-org/youtube-dl) is a perfect alternative but it takes time to launch. Hence, play-dl is created to avoid these issues along with providing comparatively faster performance than others.
|
||||||
|
|
||||||
[](https://discord.gg/8H3xWcv3D7)
|
[](https://discord.gg/8H3xWcv3D7)
|
||||||
|
[](https://www.npmjs.com/package/play-dl)
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
You can contact us for support on our [chat server](https://discord.gg/8H3xWcv3D7)
|
You can contact us for support on our [chat server](https://discord.gg/8H3xWcv3D7).
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
|
**Node.js 16.0.0 or newer is required.**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install play-dl@latest
|
npm install play-dl@latest
|
||||||
|
pnpm add play-dl@latest
|
||||||
|
yarn add play-dl@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Importing
|
### Importing
|
||||||
|
|
||||||
|
**TypeScript:**
|
||||||
```ts
|
```ts
|
||||||
import * as play from 'play-dl' // ES-6 import or TS import
|
import play from 'play-dl'; // Everything
|
||||||
|
|
||||||
const play = require('play-dl') //JS importing
|
import { video_basic_info, stream } from 'play-dl'; // Individual functions
|
||||||
|
```
|
||||||
|
|
||||||
|
**CommonJS modules:**
|
||||||
|
```js
|
||||||
|
const play = require('play-dl'); // Everything
|
||||||
|
|
||||||
|
// Individual functions by using destructuring
|
||||||
|
const { video_basic_info, stream } = require('play-dl');
|
||||||
|
```
|
||||||
|
|
||||||
|
**ES6 modules:**
|
||||||
|
```ts
|
||||||
|
import * as play from 'play-dl'; // Everything
|
||||||
|
|
||||||
|
import { video_basic_info, stream } from 'play-dl'; // Individual functions
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Documentation](https://play-dl.github.io/modules.html)
|
### [Documentation](https://play-dl.github.io/modules.html)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user