Socket
Book a DemoInstallSign in
Socket

youtubetimelink

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtubetimelink

YouTube link generator with start time.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

This package generates YouTube link with start time..

Installation

npm install youtubetimelink --save

Usage

const { 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

Note

  • 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.

Tests

npm run test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details.

License

The MIT License (MIT). Please see License File for more information.

Support

Buy Me A Coffee

Happy Coding!!!

FAQs

Package last updated on 09 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.