chore(docs): Minor update (#502)

* Updated documentation example to matche syntax of existing parsers.

* Changed from require since package is setup as module.
This commit is contained in:
Ryan Sandbach
2023-09-12 02:49:36 -04:00
committed by GitHub
parent e216124bb0
commit f4bc8508d0
2 changed files with 5 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
const { Innertube, UniversalCache } = require('youtubei.js');
import { Innertube, UniversalCache } from 'youtubei.js';
(async () => {
const yt = await Innertube.create({