mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-06 04:23:58 +03:00
21 lines
350 B
Markdown
21 lines
350 B
Markdown
# Piped API
|
|
|
|
This is the API wrapper for [Piped](https://github.com/TeamPiped/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);
|
|
```
|