Start a project

Tool 166 of 244 · JavaScript

package.json Exports Resolver

Resolves import specifiers through package.json exports and imports maps for each condition, like Node and bundlers do.

package.json Exports Resolver

package.json and the specifier

Resolution

SpecifierConditionsFileNotes

    01

    What it does

    Resolves import specifiers through package.json exports and imports maps for each condition, like Node and bundlers do.

    • Implements Node's PACKAGE_EXPORTS_RESOLVE / PACKAGE_IMPORTS_RESOLVE (conditions order, subpath patterns with *, null targets, invalid tar…
    • Lints common mistakes (types not first, missing ./package.json export)

    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

    The resolved file for each condition, with a Copy and a Download button on every result.

    • package.json
    • exports
    • Node

    Why it matters

    Resolves import specifiers through package.json exports and imports maps for each condition, like Node and bundlers do.

    Implements Node's PACKAGE_EXPORTS_RESOLVE / PACKAGE_IMPORTS_RESOLVE (conditions order, subpath patterns with *, null targets, invalid targets) plus TypeScript's types/typesVersions lookups; condition presets for Node ESM/CJS, webpack, Vite, TS bundler/node16. Lints common mistakes (types not first, missing ./package.json export). Everything runs in your browser; nothing you paste is sent unless you press Fetch.

    How to use it

    1. Paste or type the input the tool asks for.
    2. Read the summary and the table or preview.
    3. Adjust the options if you need a different result.
    4. Copy or download the output. Nothing leaves this page.

    FAQ

    Is my input uploaded?

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

    Will this change my site for me?

    No. It shows results and, where it writes rules or files, you copy them and apply them yourself.

    Can I rely on this as official guidance?

    It follows public documentation and well-known algorithms, and tells you where it is a subset or a simulation. Confirm critical changes in the official tool or a staging environment.

    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