Stay tuned :)
Core package for Rowana GEO - Automates JSON-LD generation during build time.
Install the package using npm:
npm install @rowana/rowana-coreOr using yarn:
yarn add @rowana/rowana-coreImport the generateJsonLd function and use it to create your JSON-LD strings.
import { generateJsonLd } from '@rowana/rowana-core';
// Example data (replace with your actual data structure)
const myData = {
pageTitle: "My Awesome Page",
description: "This page is truly awesome."
};
const jsonLdString = generateJsonLd(myData);
console.log(jsonLdString);
// Output (currently placeholder): {"@context":"https://schema.org","@type":"WebPage","name":"Placeholder"}
// You can then inject this string into a <script type="application/ld+json"> tag in your HTML.This project is licensed under the MIT License - see the LICENSE file for details.