Skip to content
HALOWERK

Codewerk

npm exports check

Takes a published npm package (name plus exact version or dist-tag, fetched only from https://registry.npmjs.org with dist.integrity check, at most 8 MiB compressed) or a .tgz as base64 (e.g. the output of npm pack). The tarball is read in memory by a bounded gzip + ustar/PAX/GNU reader (at most 48 MiB unpacked and 20,000 entries; absolute paths and ".." entries reject the tarball; symlinks and hardlinks are listed, never followed; the first path component, normally package/, is stripped as.

POST https://code.halowerk.com/v1/npm-exports-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packagestringNonpm package name, e.g. "ms" or "@scope/name". Fetched from https://registry.npmjs.org only.
versionstringNoExact version or dist-tag; default "latest". Only with package.
tarball_base64stringNoAlternatively the package .tgz (npm pack output) as base64, at most about 5 MiB; a data: URL prefix is accepted.
levelstringNoLowest publint message level to report.
strictbooleanNoReport publint warnings as errors.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "package": {
      "type": "string",
      "minLength": 1,
      "maxLength": 214,
      "pattern": "^(@[a-z0-9~-][a-z0-9._~-]*/)?[a-z0-9~-][a-z0-9._~-]*$",
      "description": "npm package name, e.g. \"ms\" or \"@scope/name\". Fetched from https://registry.npmjs.org only."
    },
    "version": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$",
      "description": "Exact version or dist-tag; default \"latest\". Only with package."
    },
    "tarball_base64": {
      "type": "string",
      "minLength": 24,
      "maxLength": 7000000,
      "description": "Alternatively the package .tgz (npm pack output) as base64, at most about 5 MiB; a data: URL prefix is accepted."
    },
    "level": {
      "type": "string",
      "enum": [
        "suggestion",
        "warning",
        "error"
      ],
      "default": "suggestion",
      "description": "Lowest publint message level to report."
    },
    "strict": {
      "type": "boolean",
      "default": false,
      "description": "Report publint warnings as errors."
    }
  }
}

Open original schema

Published input example

{
  "package": "ms",
  "version": "2.1.3"
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’