@shelf/get-video-id
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@shelf/get-video-id CircleCI

Wrapper around https://github.com/radiovisual/get-video-id to return video service query params (youtube starts from as an example )

Install

yarn add @shelf/get-video-id

Usage

import getVideoId from '@shelf/get-video-id';

getVideoId('https://youtu.be/LqTuxFElqag');
/** => {
  id: 'LqTuxFElqag',
  service: 'youtube',
  embedURL: 'https://www.youtube.com/embed/LqTuxFElqag'
} **/

getVideoId('https://youtu.be/LqTuxFElqag?t=7939'); // With time param
/** => {
  id: 'LqTuxFElqag',
  service: 'youtube',
  embedURL: 'https://www.youtube.com/embed/LqTuxFElqag?start=7939'
} **/

getVideoId('https://vimeo.com/259411563#t=50s');
/** => {
  id: '259411563',
  service: 'vimeo',
  embedURL: 'https://player.vimeo.com/video/259411563'
} **/

API

Documentation is available here

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.1905latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.1905
1.0.00
0.5.860
0.0.01
0.5.850
0.5.840
0.5.830
0.5.820
0.5.810
0.5.801
0.5.790
0.5.780
0.5.770
0.5.760
0.5.750
0.5.740
0.5.730
0.5.720
0.5.710
0.5.700
0.5.690
0.5.680
0.5.670
0.5.661
0.5.650
0.5.640
0.5.630
0.5.620
0.5.610
0.5.600
0.5.590
0.5.580
0.5.570
0.5.560
0.5.550
0.5.540
0.5.530
0.5.520
0.5.510
0.5.500
0.5.490
0.5.480
0.5.470
0.5.460
0.5.450
0.5.440
0.5.430
0.5.420
0.5.410
0.5.400
0.5.390
0.5.380
0.5.370
0.5.360
0.5.350
0.5.340
0.5.330
0.5.320
0.5.310
0.5.300
0.5.290
0.5.280
0.5.270
0.5.260
0.5.250
0.5.240
0.5.230
0.5.220
0.5.210
0.5.200
0.5.190
0.5.180
0.5.170
0.5.160
0.5.150
0.5.140
0.5.130
0.5.120
0.5.110
0.5.100
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.590
0.4.570
0.4.560
0.4.550
0.4.540
0.4.530
0.4.520
0.4.510
0.4.500
0.4.490
0.4.480
0.4.470
0.4.460
0.4.450
0.4.440
0.4.430
0.4.400
0.4.390
0.4.380
0.4.370
0.4.360
0.4.350
0.4.340
0.4.330
0.4.320
0.4.310
0.4.300
0.4.290
0.4.280
0.4.270
0.4.260
0.4.250
0.4.240
0.4.230
0.4.220
0.4.210
0.4.200
0.4.190
0.4.180
0.4.170
0.4.160
0.4.150
0.4.140
0.4.130
0.4.120
0.4.100
0.4.90
0.4.80
0.4.70
0.4.60
0.4.50
0.4.40
0.4.30
0.4.20
0.4.10
0.4.00
0.2.200
0.2.190
0.2.181
0.2.170
0.2.160
0.2.150
0.2.140
0.2.130
0.2.120
0.2.110
0.2.100
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.10
0.1.00
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @shelf/get-video-id

Weekly Downloads

909

Version

1.0.1

License

MIT

Unpacked Size

5.35 kB

Total Files

10

Last publish

Collaborators

  • vladmarchuk
  • vadymaslovskyi
  • andrew_batutin
  • marianna-milovanova
  • petro.bodnarchuk
  • kateryna-kochina
  • maksym.tarnavskyi
  • andrii-nastenko
  • mykhailo.yatsko
  • ahavrysh
  • nikita_shelf
  • maciej.orlowski
  • monopotan
  • andrew214
  • bogdan.kolesnyk
  • andrii.batutin
  • kristina.zhak
  • anton-russo
  • mmazurowski
  • mateuszgajdashelf
  • kchlon
  • dmytro.harazdovskiy
  • duch0416
  • i5adovyi
  • olesiamuller
  • mykola.khytra
  • yuliiakovalchuk
  • el_scrambone
  • bodyaflesh
  • andriisermiahin
  • mpushkin
  • batovpavlo
  • domovoj
  • vozemer
  • oleksii.dymnich
  • dima-bond
  • maksym.hayovets
  • oles.zadorozhnyy
  • ss1l
  • gemshelf
  • hartzler
  • vladgolubev
  • hmelenok
  • knupman
  • maaraanas
  • terret
  • chapelskyi.slavik
  • pihorb
  • irynah
  • diana.kryskuv
  • andy.raven
  • rafler
  • sskalp88
  • demiansua
  • yuriil
  • ktv18
  • drews_abuse
  • rostyslav-horytskyi
  • whodeen