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

charminator

v1.0.13

Published

Welcome to Charminator, the one and only React component library that makes displaying a single character as complicated and absurdly fun as possible!

Downloads

31

Readme

Charminator

Welcome to Charminator, the one and only React component library that makes displaying a single character as complicated and absurdly fun as possible!

Ever dreamed of turning your UI into a battleground of functional programming debates? Ever wanted to spend an entire day manipulating a single character? Well, your dreams just came true!

Introducing <Charminator />: a component so powerful, you’ll forget it only displays one character.

Key Features:

  • Character Rendering: Because why render an entire word when you can focus on a single char?
  • Custom Styling: Change colors and sizes! Make your letter red, green, or neon purple! Why? Because you can!
  • Case Manipulation: Feeling loud? Make it uppercase! Whispering? Go lowercase! Or just mix it up because life is too short for consistent casing.
  • Over-Engineering at Its Finest: Want to display an ‘A’ in a way that would make your fellow developers weep? Here’s your chance!

Charminator Properties

| Property | Type | Required | Description | |---------------|-----------|----------|--------------------------------------------------------------------------| | value | string | Yes | The character to be displayed. Must be a single character. | | toLowerCase | boolean | No | If true, transforms the character to lowercase. | | toUpperCase | boolean | No | If true, transforms the character to uppercase. | | className | string | No | Optional CSS class to apply custom styles. | | color | string | No | Sets the text color. Should be a valid hex color code (e.g., #FF5733). | | size | string | No | Specifies the font size (e.g., 12px, 2em). |

Install

npm i charminator

Examples

1. Displaying a single char

<Charminator
  value="a"
  color="#FF0000"
  size="28px"
  uppercase: {true};
/>

This will render the letter “A” in a size and shade of red that will make all other letters on the page feel inferior.

2. Displaying a word

If you want to write the word "Charminator", you can do it in the following way:

<Charminator
  value="c"
  color="#FF0000"
  size="28px"
  uppercase: {true};
/>
<Charminator
  value="h"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="a"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="r"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="m"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="i"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="n"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="a"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="t"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="o"
  color="#FF0000"
  size="28px"
/>
<Charminator
  value="r"
  color="#FF0000"
  size="28px"
/>

Why Use Charminator?

  • Because every other problem in React has already been solved.
  • Because sometimes you just want to question your career choices.
  • Because life’s too short not to laugh at how much we over-complicate things.

Install now, and join the fun of turning a single character into the most important element on your page. Let’s make React development even more ridiculous