npname

Validate npm package names and check availability on the registry. Use when creating new npm packages, suggesting package names, or validating package naming conventions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "npname" with this command: npx skills add dobroslavradosavljevic/npname/dobroslavradosavljevic-npname-npname

npm Package Name Validation

Use this skill when helping users create new npm packages, validate package names, or check name availability on the npm registry.

CLI Usage

Check package name availability:

npx npname <name> [names...]

Options

OptionDescription
--validate, -vValidate only (no network check)
--check, -cFull check with detailed output
--registry, -rCustom registry URL
--json, -jOutput as JSON for scripting
--quiet, -qMinimal output (exit codes only)

Examples

# Check single package availability
npx npname my-awesome-package

# Check multiple packages
npx npname react vue angular

# Validate without network check
npx npname "My Package" --validate

# JSON output for scripting
npx npname foo bar --json

Programmatic Usage

import {
  check,
  checkAvailability,
  checkAvailabilityMany,
  validate,
} from "npname";

// Check availability
const isAvailable = await checkAvailability("my-package");

// Validate only (no network)
const validation = validate("my-package");

// Full check: validate + availability
const result = await check("my-package");

// Batch check multiple names
const results = await checkAvailabilityMany(["name1", "name2", "name3"]);

npm Naming Rules

Errors (Invalid for all packages)

  • Must be a string
  • Cannot be empty
  • No leading/trailing spaces
  • Cannot start with ., _, or -
  • Must be URL-safe (no special characters like :, ?, etc.)
  • Cannot be blacklisted names (node_modules, favicon.ico)

Warnings (Invalid for new packages)

  • Max 214 characters
  • No uppercase letters
  • No special characters (~'!()*)
  • Cannot be Node.js core module names (fs, http, path, etc.)

Scoped Packages

Within a scope (@scope/name), the name portion can:

  • Start with - or _
  • Use core module names
  • Use reserved names

Best Practices

When suggesting package names:

  1. Use lowercase letters, numbers, and hyphens only
  2. Keep names short but descriptive
  3. Check availability before recommending
  4. For scoped packages, use @org/package-name format
  5. Avoid generic names that are likely taken

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

using-kuzenbo-in-apps

No summary provided by upstream source.

Repository SourceNeeds Review
General

Trunkate AI

Semantically optimizes context history and large text blocks via the Trunkate AI API. Includes proactive context pruning hooks for automated token management.

Registry SourceRecently Updated
General

Long-term Task Progress Manager

Manages multi-session, multi-stage projects by maintaining and syncing MISSION.md, PROGRESS.md, and NEXT_STEPS.md for seamless long-term progress tracking.

Registry SourceRecently Updated