npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bright_meta

v1.0.5

Published

`bright_meta` is a lightweight React component that simplifies the management of meta tags in your React applications. Inspired by the Next.js `<Head>` component, it allows you to add and remove meta tags dynamically, making it easier to manage SEO-relate

Downloads

12

Readme

bright_meta

bright_meta is a lightweight React component that simplifies the management of meta tags in your React applications. Inspired by the Next.js <Head> component, it allows you to add and remove meta tags dynamically, making it easier to manage SEO-related tasks.

Features

  • Dynamically add and remove meta tags in the document head.
  • No additional attributes are added to the meta tags.
  • Supports title, meta, and link tags.

Installation

You can install bright_meta via npm:

npm install bright_meta

Or using yarn:

yarn add bright_meta

Usage

Here’s an example of how to use bright_meta in a React project:

import bright_meta from "bright_meta";

const MyApp = () => {
  return (
    <div>
      <bright_meta>
        <title>My App Title</title>
        <meta name="description" content="This is a description for my app" />
        <meta name="keywords" content="react, seo, meta tags" />
        <meta name="author" content="Mahadi Hasan" />
        <meta property="og:image" content="https://example.com/image.png" />
      </bright_meta>
      <h1>Welcome to My App</h1>
    </div>
  );
};

export default MyApp;

Props

The bright_meta component accepts any valid HTML head tag as children:

  • <title>: Sets the document title.
  • <meta>: Adds meta tags for SEO purposes.
  • <style>: Adds style tags.
  • <link>: Adds link tags (e.g., for favicons or stylesheets).

How It Works

  • Adding Tags: When the bright_meta component is rendered, it appends the specified tags to the <head> of the document.
  • Removing Tags: When the component is unmounted, the tags are automatically removed, ensuring that only the necessary tags are present in the document.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Created by Mahadi Hasan.

Contributing

Contributions are welcome! Please open an issue or submit a pull request to contribute.


Enjoy using bright_meta? Give it a ⭐ on GitHub!

Summary of the README.md Sections:

  1. Introduction: A brief description of the package and its purpose.
  2. Installation: Instructions on how to install the package.
  3. Usage: Example code showing how to use the bright_meta component.
  4. Props: Explanation of the props that can be passed to bright_meta.
  5. How It Works: A description of how the component adds and removes tags.
  6. License: License information for the package.
  7. Author: Information about the creator of the package.
  8. Contributing: Information about contributing to the project.