Package.json Validator

Validate your package.json files for errors and compliance with npm specifications. Check required fields, version formats, dependency declarations, and more.

Paste your package.json content above to validate and analyze it

FAQ

What does this validator check?

This validator checks JSON syntax, required fields (name, version), valid package naming conventions, semver version formats, dependency declarations, and other npm specification requirements.

What are common package.json errors?

Common errors include invalid JSON syntax, missing required fields, invalid package names (uppercase, special characters), invalid version formats, and malformed dependency declarations.

How should package names be formatted?

Package names must be lowercase, can contain hyphens and underscores, cannot start with a dot or underscore, and must be URL-safe. Scoped packages use the @scope/name format.

Related Tools