Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sveltekit-embed

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
804
increased by1.13%
Maintainers
1
Weekly downloads
 
Created
Source

SvelteKit Embed

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

You can use the components locally via the src/routes/index.svelte file. If there any changes you want to test in the package then run the sveltekit package command and you can then install that package locally:

# package with sveltkit
npm run package
# install local package
npm i -D ./package

If you're adding a new component to src/lib/components then add the export to src/lib/index.ts.

Thanks

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

Keywords

FAQs

Package last updated on 03 May 2022

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc