Skip to content
HALOWERK

Paketwerk

npm package manager consistency

Return conflicts between a packageManager declaration and supplied lockfile manager identities. Supplied data only; bounded local calculation. No network lookup or external action.

POST https://paket.halowerk.com/v1/npm-package-manager-consistency

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
package_managerstringYes
lockfilesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "package_manager": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1
    },
    "lockfiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          },
          "manager": {
            "enum": [
              "npm",
              "pnpm",
              "yarn",
              "bun"
            ]
          },
          "version": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1
          }
        },
        "required": [
          "path",
          "manager",
          "version"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    }
  },
  "required": [
    "package_manager",
    "lockfiles"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "package_manager": "npm@10.8.2",
  "lockfiles": [
    {
      "path": "package-lock.json",
      "manager": "npm",
      "version": "10.8.2"
    },
    {
      "path": "pnpm-lock.yaml",
      "manager": "pnpm",
      "version": "9.0.0"
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’