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
- Enter key. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| key | Key | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| numeric | Numeric | Required. Boolean. |
| defaultCondition | Default Condition | Required. Boolean. |
| valid | Local condition-key predicate; excludes canonical nonnegative numeric keys, without resolving exports. | Required. Boolean. |
{
"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
Similar or alternative tools
- Package Export Condition Priority
Select the first matching export-condition key.
- npm Package Tag Selector Split
Split a package selector at its required name-selector boundary.