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

mutter-test-package

v0.0.6

Published

This is a test react package which is to be primarily used for demostrating the process of development and publishing of react packages

Downloads

3

Readme

mutter-test-package

This is a test react package created by @asxyzp which is to be primarily used for demostrating the process of development and publishing of react packages.

Package ouptut

Available React Components

1. <Badge/>

Utility: Creating a badge component which consists of an icon such as mailbox or archive with the content or badge describing the number of items in it.

Import statement:

import {Badge} from 'hello-world-package';

Props:

id (STRING) Id of the badge component icon (STRING) Bootstrap icon class value for the badge icon content (NUMBER) Badge content which shows numerical associate with the badge component iconClass (STRING) Class value for icon element of the badge component badgeClass (STRING) Class value for the badge content containerClass (STRING) Class value for the container containing both icon & content of badge component iconStyle (OBJECT) Styles for the badge icon badgeStyle (OBJECT) Styles for the badge content containerStyle (OBJECT) Styles for the container containing both icon & content of badge component

Example

<Badge icon="bi bi-archive-fill" content={1} containerClass="m-3 d-inline-flex align-items-start" iconClass='bg-dark text-light h4 p-1 rounded' badgeClass='p-1 bg-danger text-light rounded small d-flex justify-content-center align-items-center' containerStyle={{ height: "fit-content", width: "fit-content" }} iconStyle={{ height: "fit-content", width: "fit-content" }} badgeStyle={{ height: "1.5em", width: "1.5em", marginLeft: "-10px", marginTop: "-10px" }} />

2. <Button/>

Utility: Creating a button component to display buttons.

Import statement:

import {Button} from 'hello-world-package';

Props:

id (STRING) Id of the button component classVal (STRING) Class value for button component style (OBJECT) Styles for the button component text (STRING) Text inside the button

Example

<Button classVal="m-3 p-1 ps-5 pe-5 fw-bold rounded bg-dark text-light lead shadow" style={{border: "0px", outline: "0px"}} text="Hello"/>

Available Scripts

npm start

To test the package's output, you can run npm start which runs the app in the development mode and shows the two components (e.g. Badge & Button) on the screen. Open http://localhost:3000 to view it in your browser.