Skip to content

Main content

Package JSON Export Condition Key Tool

Compute package json export condition key from explicit bounded inputs.

Loading tool…

Description

Inspect one package export-condition key under a restricted rule.

Package and container references combine names, selectors, conditions and platform metadata. A restricted lexical split can preserve these parts without validating registry identity, available targets, dependency graphs or runtime resolution.

Inspect one package export-condition key under a restricted rule.

When to use this tool

Use Package JSON Export Condition Key when checking the stated package, Cargo or container-reference component.

How to use the tool and how it works

  1. Enter key. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read numeric, defaultCondition, valid. Inspect numeric, defaultCondition, valid before interpreting the associated values.

Inspect one package export-condition key under a restricted rule. Flag canonical nonnegative integer strings and default; valid requires nonempty text without initial dot, comma or canonical numeric spelling.1

Input fieldMeaning and unitsAccepted input
keyKeyRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
numericNumericRequired. Boolean.
defaultConditionDefault ConditionRequired. Boolean.
validLocal condition-key predicate; excludes canonical nonnegative numeric keys, without resolving exports.Required. Boolean.
json
{
  "input": {
    "key": "default"
  },
  "output": {
    "numeric": false,
    "defaultCondition": true,
    "valid": true
  }
}

Limitations and assumptions

  • This local predicate is not full Node.js export-map validation or proof a condition is supported.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the relevant package manager, runtime or registry against the actual project for complete resolution and validation.

References

  1. Calculation and input contract: development/package-json-export-condition-key — tool.io

Similar or alternative tools