Socket
Socket
Sign inDemoInstall

sveltekit-embed

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sveltekit-embed

This is a collection of embed components I use on a regular basis packaged up for use.


Version published
Weekly downloads
681
increased by26.11%
Maintainers
1
Install size
27.8 kB
Created
Weekly downloads
 

Readme

Source

SvelteKit Embed

All Contributors

This is a collection of embed components I use on a regular basis packaged up for use.

Each component is wrapped in an intersection observer GeneralObserver which will load up the component when it scrolls into the viewport.

Use

npm i -D sveltekit-embed

Use like a normal Svelte component:

<script>
  import { AnchorFm } from 'sveltekit-embed'
</script>

<AnchorFm
  height="165"
  episodeUrl="purrfect-dev/embed/episodes/1-31---Delivering-Digital-Content-with-GraphCMS-e14g55c/a-a650v9a"
/>

Got questions?

Start a discussion

Something not work?

Create an issue

Todo

  • Add more components
  • Tests... need adding
  • If you know how to type a custom action in Svelte, please submit a PR

Developing locally

Import the component locally into the index.md file:

import MyComponent from '$lib/components/my-component.svelte'

Test the package locally with the package:local script:

npm run package:local

And add it to the import statement in the index.md file:

import { MyComponent } from 'sveltekit-embed'

Test locally, then submit a PR 🙏

If you're adding a new component to be used in the package then add an export to the src/lib/index.ts file.

Thanks

Credit to @pauliescanlon for the original version of this project in MDX Embed.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Scott Spence

💻

Cahllagerfeld

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

FAQs

Last updated on 21 May 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc