Skip to content
HALOWERK

Package and Supply Chain Security

npm upgrade module format switch

npm module formats return the default JavaScript interpretation declared by each release. Use it when an agent needs to identify an ESM or CommonJS transition.

POST https://paket.halowerk.com/v1/npm-upgrade-module-format-switch

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packagestringYes
fromstringYes
tostringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "package": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
    },
    "from": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    },
    "to": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    }
  },
  "required": [
    "package",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "package": "commander",
  "from": "9.5.0",
  "to": "12.1.0"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’