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 🙏

© 2026 – Pkg Stats / Ryan Hefner

casecraft

v1.9.3

Published

A lightweight utility for converting strings between common naming conventions like camelCase, PascalCase, snake_case, kebab-case, and dot.case.

Readme

🧰 casecraft

casecraft is a lightweight utility that converts strings between common naming conventions like camelCase, PascalCase, snake_case, kebab-case, and more. It helps developers maintain consistent naming across codebases, APIs, databases, and user-facing content.

Good naming is fundamental to clean code. casecraft ensures your naming follows the right conventions for the right contexts — automatically.


📦 Installation

npm install casecraft

🚀 Usage

Import and use casecraft to convert strings:

import {
  toCamelCase,
  toSnakeCase,
  toKebabCase
} from 'casecraft';

toCamelCase('user_profile_data');
// → userProfileData

toSnakeCase('userProfileData');
// → user_profile_data

toKebabCase('GetUserInfo');
// → get-user-info

🔤 Supported Naming Conventions

  • camelCase
    From: user_profile_data
    To: userProfileData
    Usage: JS variables, functions, internals

  • PascalCase
    From: get-user-info
    To: GetUserInfo
    Usage: Class names, components, constructors

  • snake_case
    From: userNameIsJohnDoe
    To: user_name_is_john_doe
    Usage: Databases, file names, Python/Ruby

  • kebab-case
    From: getUserProfileData
    To: get-user-profile-data
    Usage: URLs, CSS class names

  • dot.case
    From: getUserDataFromDatabase
    To: get.user.data.from.database
    Usage: Config keys, settings

  • SCREAMING_SNAKE_CASE
    From: sessionTimeoutWarning
    To: SESSION_TIMEOUT_WARNING
    Usage: Constants, env variables

  • lowercase
    From: HELLO_WORLD
    To: hello_world
    Usage: File systems, normalization

  • UPPERCASE
    From: helloWorld123
    To: HELLOWORLD123
    Usage: Constants, emphasis

  • Title Case
    From: this is a title case string
    To: This Is A Title Case String
    Usage: Headings, labels

  • Train-Case
    From: user-login-data
    To: User-Login-Data
    Usage: URLs, titles

  • path/case
    From: user.profile.image
    To: user/profile/image
    Usage: File paths, folders

  • slug-case
    From: A Great Day in the City!
    To: a-great-day-in-the-city
    Usage: Slugs, SEO URLs

  • noSpaces
    From: No Spaces Allowed!
    To: noSpacesAllowed
    Usage: Compact identifiers

  • human-readable
    From: this_is_a_cool_example
    To: This is a cool example
    Usage: UI labels, plain text


💡 Why Naming Conventions Matter

Consistent naming:

  • Improves readability
  • Reduces team friction
  • Follows language best practices
  • Enhances cross-system integration
  • Simplifies debugging and maintenance

casecraft lets you focus on clean code, not tedious string formatting.


📚 Documentation

See the full API and tools in the GitHub repo.


🔗 Links


💬 Community

We welcome issues, pull requests, and feedback.
Join us on GitHub!


🛠️ Contributing

  1. Fork the repo
  2. Create a new branch
  3. Make your changes
  4. Open a pull request

Please follow conventional commits and include docs/tests where helpful.


💖 Sponsored by FabForm.io

FabForm.io helps you build, manage, and process forms with ease.

  • Built for JAMstack, static sites, and modern apps
  • Handles submissions, spam filtering, and notifications
  • Just connect your form and go — no backend needed

👉 Try it at FabForm.io