From 4d3ddd2d4b3b1600974ac27a5f8c084dde3678f8 Mon Sep 17 00:00:00 2001 From: Zev Averbach Date: Thu, 1 Oct 2020 12:46:33 +0200 Subject: [PATCH] added new methods to README, as well as how to install this fork --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a67d95d..0a01201 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,28 @@ The Youtube stuff comes from [HERE](https://developers.google.com/youtube/iframe # How to use it ? -Just - -```bash -npm install --save-dev @sveltecasts/svelte-youtube@0.0.5 +Just add this to your dependencies in `package.json`: +```json + "svelte-youtube": "https://github.com/zevaverbach/svelte-youtube.git", ```` And in your Source Code under Script: ``` -import Youtube from "@sveltecasts/svelte-youtube"; +import Youtube from "svelte-youtube" ``` +## Methods +- `play()` +- `pause()` +- `paused()` +- `jumpTo(seconds)` +- `position()` -# Btw +# YouTube Video About Its Making Here is a youtube video about this component: