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

svelte-meta

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-meta

Easily generate SEO metadata for Svelte

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Svelte Meta

NPM License

Easily generate SEO metadata for Svelte.

Features

  • Automatically set relevant social meta tags common attributes like title and description
  • Automatically set relevant JSON-LD metadata
  • Shorthands for setting Open Graph and Twitter metadata
  • Shorthands for setting URL, Sitemap, and other technical SEO data

Usage

npm i svelte-meta
<script>
  import Meta from 'svelte-meta';
</script>

<Meta
  title="My Page"
  description="It's a great page"
  image="/cover.png"
  url="https://website.com/page
/>

Properties

PropertyTypeDescriptionMetadata Set
titlestringTitle of your project<title>, title, og:title
descriptionstringDescriptoin of your projectdescription, og:description
imagestring or { url: string; width: number; height: number; alt: string}Image for social networksog:image
urlstringURL of the current pagecanonical og:url
siteUrlstringRoot URL of your websiteJSON-LD
logostringLogo image for your brandJSON-LD
searchstringSearch page base URLJSON-LD
sitemapstringURL of your sitemapsitemap
openGraphInherits other properties, plus custom og: properties, eg: videoOpenGraph propertiesog:

Notes

  • Twitter inherits Open Graph (og:) properties if twitter: specific metadata is not set, which is why svelte-meta doesn't include them

Keywords

FAQs

Package last updated on 19 May 2021

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