Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BOTCAHX authored Feb 2, 2024
1 parent 2436744 commit 09a0244
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
```sh
npm i tiktokdl
```
#### [Demo Projects](https://github.com/BOTCAHX/tiktokdl-api)

# Example
# Example For CommonJS
```js
const { tiktokdl } = require('tiktokdl')

Expand All @@ -13,6 +11,15 @@ const url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243?is_from
const data = await tiktokdl(url)
console.log(data) // JSON
```
# Example For TypeScript
```ts
import { tiktokdl: TikTok } from "tiktokdl"

const url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243?is_from_webapp=1&sender_device=pc&web_id6982004129280116226'
// Using tiktokdl
const data = await TikTok(url)
console.log(data) // JSON
```

## Catatan Penting

Expand Down

0 comments on commit 09a0244

Please sign in to comment.