This package generates YouTube link with start time..
npm install youtubetimelink --saveconst { generateLink } = require("youtube-time-link");
const url = " ";
const time = { hours: 1, minutes: 30, seconds: 10 };
const generatedLink = generateLink(url, time);
console.log(generatedLink); // https://www.youtube.com/watch?v=acgz0C-z-gc?si=GO-xA2cvqi8HxtEy&t=5410s- The youtube link can be in following formats
- https://youtu.be/<VIDEO_ID>
- https://www.youtube.com/watch?v=<VIDEO_ID>
- The hours, minutes or seconds are optional.. you can provide anyone of them or in any combination.
npm run testPlease see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING and CODE OF CONDUCT for details.
The MIT License (MIT). Please see License File for more information.