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

@nebulaai/capitalize-first

v0.1.1

Published

Capitalize the first letter of a string

Readme

🌟 capitalize-first

One letter. Maximum impact. Make every string start like it means business.

Pure string power from the NebulaAI arsenal


⚡ Get Started (Lightning fast)

npm install @nebulaai/capitalize-first

🔥 Watch the magic happen

import { capitalizeFirst } from "@nebulaai/capitalize-first";

// Transform user input like a pro
capitalizeFirst("hello world");        // → "Hello world"
capitalizeFirst("SCREAMING TEXT");     // → "SCREAMING TEXT" 
capitalizeFirst("camelCaseStuff");     // → "CamelCaseStuff"
capitalizeFirst("99 problems");        // → "99 problems"

// Perfect for UI polish
const userName = "sarah_dev_2024";
const displayName = capitalizeFirst(userName);  // → "Sarah_dev_2024"

🚀 Why developers choose this

  • Microscopic bundle: Adds literally nothing to your build size
  • Bulletproof: Handles edge cases you forgot existed
  • TypeScript native: IntelliSense that actually helps
  • Zero deps: No dependency hell, ever
  • Works everywhere: Node, Deno, Bun, browsers - anywhere JS runs

🛠️ API That Never Fails

capitalizeFirst(str: string): string

| Input | Output | Vibe Check | |-------|--------|------------| | "hello" | "Hello" | ✨ Clean | | "HELLO" | "HELLO" | 🎯 Smart | | "" | "" | 🛡️ Safe |

Pro move: Handles empty strings, weird unicode, and everything in between without breaking a sweat.


🎯 Perfect for

  • User-facing text → Professional first impressions
  • Form validation → Clean up messy input instantly
  • Content management → Consistent formatting everywhere
  • API responses → Polish data before it hits the frontend
  • Template strings → Dynamic content that looks intentional

💡 Before vs After

// Before: Manual, error-prone, forgettable
function makeNice(str) {
  if (!str) return str;
  return str.charAt(0).toUpperCase() + str.slice(1);
}

// After: One import, infinite confidence
import { capitalizeFirst } from "@nebulaai/capitalize-first";
const result = capitalizeFirst(userInput);  // Just works ™️

📄 License

MIT © Jorge Gonzalez / Temporal AI Technologies Inc.

Empowering developers to build better, faster, cleaner