mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-05 20:13:58 +03:00
22 lines
312 B
Markdown
22 lines
312 B
Markdown
|
# Piped API
|
||
|
|
||
|
This is the API wrapper for Piped in Node.js (Typescript).
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```bash
|
||
|
npm i piped-api
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```typescript
|
||
|
import { PipedApi } from "piped-api";
|
||
|
|
||
|
const api = new PipedApi("https://ytapi.dc09.ru");
|
||
|
|
||
|
let trending = await api.trending("US");
|
||
|
|
||
|
console.log(trending[0].title);
|
||
|
```
|