{"_id":"@1ohooks/seo-config-provider","_rev":"1-a47be062f15498c34143ea28d26c074d","name":"@1ohooks/seo-config-provider","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@1ohooks/seo-config-provider","version":"0.1.0","main":"dist/packages/SEOConfigProvider/index.js","types":"dist/packages/SEOConfigProvider/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","_id":"@1ohooks/seo-config-provider@0.1.0","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-REasSZ4SCh/0lx+3Kz+iOXq7zsYlWIgCbZygVPBsh2raZIkEHDazCO47NmOrt6evv2vYtKWgxlhNXcFdICUWoQ==","shasum":"4c7b217e28c56efaba32d559d075b9738af43356","tarball":"https://registry.npmjs.org/@1ohooks/seo-config-provider/-/seo-config-provider-0.1.0.tgz","fileCount":9,"unpackedSize":3569,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNzirpZ3/kkRDHlYXyIHZp/yAohrT4rXaf7k6H7NNY0QIgV226Pd4IVEG8TUfJZ37XT6nsSDI1cc2DPQ75EW8w6GQ="}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/seo-config-provider_0.1.0_1695584411457_0.3157658529013465"},"_hasShrinkwrap":false},"0.1.1":{"name":"@1ohooks/seo-config-provider","version":"0.1.1","main":"dist/packages/SEOConfigProvider/index.js","types":"dist/packages/SEOConfigProvider/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","description":"<h1>SEOConfigProvider</h1>","_id":"@1ohooks/seo-config-provider@0.1.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Km4tNN1YWNYtXoDbZXHWQ8/JYTtqbiLlhp2+mR0bG/wOEQdnoWGt9xC6F02wgKeI/imDFaPcfygyq08E1YXKmQ==","shasum":"bb12ed71b36548f33726ceaadd00c65f0a7a605b","tarball":"https://registry.npmjs.org/@1ohooks/seo-config-provider/-/seo-config-provider-0.1.1.tgz","fileCount":10,"unpackedSize":6249,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNK6Q47rAnhLcj3hrMv6DrV0FWgUqdGt3jVTqeHH3WbAiEA5v4kJ6lQl1gmF0RBluPAYM2jlOd4EIXPdIRHP07K/is="}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/seo-config-provider_0.1.1_1695587474289_0.9340483721443924"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-24T19:40:11.338Z","0.1.0":"2023-09-24T19:40:11.666Z","modified":"2023-09-24T20:31:14.751Z","0.1.1":"2023-09-24T20:31:14.471Z"},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"keywords":[],"license":"ISC","readme":"<h1>SEOConfigProvider</h1>\n\n<p><code>SEOConfigProvider</code> is a React hook that provides SEO configuration to your components through a context. It allows you to easily manage and share SEO-related properties across your application.</p>\n\n<h2>Installation</h2>\n\n<p>To use <code>SEOConfigProvider</code>, you'll need to have React installed in your project. You can add it to your project using npm or yarn:</p>\n\n<pre><code>npm install react\n# or\nyarn add react\n</code></pre>\n\n<p>Next, install <code>SEOConfigProvider</code>:</p>\n\n<pre><code>npm install @1ohooks/SEOConfigProvider\n# or\nyarn add @1ohooks/SEOConfigProvider\n</code></pre>\n\n<h2>Usage</h2>\n\n<h3>Importing</h3>\n\n<p>You can import <code>SEOConfigProvider</code> and <code>useSEOConfig</code> in your components as follows:</p>\n\n<pre><code>import { SEOConfigProvider, useSEOConfig } from '@1ohooks/SEOConfigProvider';\n</code></pre>\n\n<h3>Setting up the Provider</h3>\n\n<p>Wrap your application or a specific part of it with the <code>SEOConfigProvider</code> to make the SEO configuration available to your components:</p>\n\n<pre><code>import React from 'react';\n\nconst App = () =&gt; {\n  const seoConfig = {\n    title: 'My Awesome Website',\n    description: 'A description of my website.',\n    // Add other SEO properties here\n  };\n\n  return (\n    &lt;SEOConfigProvider config={seoConfig}&gt;\n      {/* Your application components */}\n    &lt;/SEOConfigProvider&gt;\n  );\n};\n\nexport default App;\n</code></pre>\n\n<h3>Accessing SEO Configuration</h3>\n\n<p>You can use the <code>useSEOConfig</code> hook to access the SEO configuration within your components:</p>\n\n<pre><code>import React from 'react';\nimport { useSEOConfig } from '@1ohooks/SEOConfigProvider';\n\nconst MyComponent = () =&gt; {\n  const seoConfig = useSEOConfig();\n\n  // Access SEO properties\n  const { title, description } = seoConfig;\n\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;{title}&lt;/h1&gt;\n      &lt;p&gt;{description}&lt;/p&gt;\n      {/* Add other SEO-related elements */}\n    &lt;/div&gt;\n  );\n};\n\nexport default MyComponent;\n</code></pre>\n\n<p>Make sure to wrap components that use <code>useSEOConfig</code> within a <code>SEOConfigProvider</code> higher up in the component tree.</p>\n\n<h2>Contributing</h2>\n\n<p>Contributions are welcome! If you have suggestions, bug reports, or would like to contribute code, please <a href=\"https://github.com/1ohooks/SEOConfigProvider/issues\">create an issue</a> or <a href=\"https://github.com/1ohooks/SEOConfigProvider/pulls\">submit a pull request</a> on the GitHub repository.</p>\n\n<h2>License</h2>\n\n<p>This project is licensed under the MIT License - see the <a href=\"LICENSE\">LICENSE</a> file for details.</p>","readmeFilename":"readme.md","description":"<h1>SEOConfigProvider</h1>"}