Determines and configures package installation strategy.
npm supports hoisted (default), nested, and isolated install strategies
configured via .npmrc or --install-strategy flag.
Summary
Functions
Describes a strategy.
Detects the install strategy from config.
Returns the node_modules structure depth for a strategy.
Returns recommended strategy for a project configuration.
Returns all supported strategies.
Checks if a strategy is valid.
Functions
Describes a strategy.
Detects the install strategy from config.
@spec max_depth(atom()) :: non_neg_integer() | :infinity
Returns the node_modules structure depth for a strategy.
Returns recommended strategy for a project configuration.
@spec strategies() :: [atom()]
Returns all supported strategies.
Checks if a strategy is valid.