Package Exports
- @lydio/meta-tags
- @lydio/meta-tags/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lydio/meta-tags) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@lydio/meta-tags
Canonical URL: https://alexstevovich.com/r/lydio-meta-tags-nodejs
Generates the complete standard set of HTML meta tags as a Lydio node.
It ensures SEO best practices, social media preview optimization, and modern web standards compliance.
Automatically generates:
- Essential meta tags (SEO, Open Graph, Twitter Cards)
- Canonical URLs & structured metadata
- Title, description, viewport, theme color, and more
- Warnings for missing critical metadata
Installation
npm install @lydio/meta-tags
Usage
import { MetaTags } from '@lydio/meta-tags';
// This is only a sample of possibilities
const metaTags = new MetaTags({
title: 'Example Page',
description: 'This is a structured meta tag generator',
canonical: 'https://example.com',
ogType: 'website',
ogTitle: 'Example Open Graph Title',
ogDescription: 'Description for Open Graph metadata',
ogImage: 'https://example.com/image.jpg',
twitterTitle: 'Twitter Card Title',
twitterDescription: 'Description for Twitter preview',
twitterImage: 'https://example.com/twitter-image.jpg',
});
console.log(metaTags.toHtml());
Generated Output Example
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Example Page</title>
<link rel="canonical" href="https://example.com" />
<meta name="robots" content="index, follow" />
<meta name="description" content="This is a structured meta tag generator" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Example Open Graph Title" />
<meta property="og:description" content="Description for Open Graph metadata" />
<meta property="og:image" content="https://example.com/image.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Twitter Card Title" />
<meta name="twitter:description" content="Description for Twitter preview" />
<meta name="twitter:image" content="https://example.com/twitter-image.jpg" />
License
Licensed under the Apache License 2.0.
Trademark
“Lydio” and related marks are trademarks of Alex Stevovich.
See TRADEMARK.md for details.