Start a project

Tool 250 of 425 · npm

package.json Validator

Lints a package.json against npm's rules and common best practice before you publish.

package.json Validator

Your input

Result

FieldResult

    01

    What it does

    Lints a package.json against npm's rules and common best practice before you publish.

    • Name and semver version rules
    • SPDX licence check
    • Wildcard and git dependencies
    • exports, files, engines and type

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    A checklist of findings, with a Copy and a Download button on every result.

    • package.json
    • npm
    • Node.js

    Why it matters

    A bad name or version stops npm publish, and wildcard ranges or missing files fields ship broken or bloated packages.

    Paste the file to catch problems before CI or users do.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Validate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Why is * flagged?

    It installs any future version, including breaking ones.

    Do I need a files field?

    It's the safest way to keep tests and secrets out of the published package.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk