@gonetone/get-youtube-id-by-url
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Get YouTube ID By Url (npm Package)

Get YouTube channel or video id by url!

Report Issues

Please report any bugs you discover at https://github.com/GoneToneStudio/node-get-youtube-id-by-url/issues

Installation

Node.js 12.0.0 or newer is required.

npm

npm install @gonetone/get-youtube-id-by-url

Yarn

yarn add @gonetone/get-youtube-id-by-url

Usage

Import package

ES Module (ESM)

import { channelId, videoId } from '@gonetone/get-youtube-id-by-url';

CommonJS (CJS)

const { channelId, videoId } = require('@gonetone/get-youtube-id-by-url');

Get YouTube Channel ID By Url

channelId('YouTube Channel Url').then((id) => {
  console.log(id);
});

Support URL format:

Get YouTube Video ID By Url

videoId('YouTube Video Url').then((id) => {
  console.log(id);
});

Support URL format:

License

MIT

Package Sidebar

Install

npm i @gonetone/get-youtube-id-by-url

Weekly Downloads

495

Version

2.0.0

License

MIT

Unpacked Size

18.7 kB

Total Files

9

Last publish

Collaborators

  • gonetone