@arolariu/website / types / NodePackageDependencyType
Type Alias: NodePackageDependencyType
NodePackageDependencyType =
Readonly<"production"|"development"|"peer">
Defined in: types/index.ts:55
Defines the category of a Node.js package dependency.
Remarks
Represents the three standard npm dependency types:
"production": Runtime dependencies required in production"development": Build-time and development-only dependencies"peer": Dependencies expected to be provided by the consumer
Immutability: Readonly to prevent accidental modification.
Usage Context: Used in dependency analysis, package.json parsing, and license compliance reporting.
Example
const depType: NodePackageDependencyType = "production";