You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to yargs passing spawn: false to os-locale most of the functionality of that module is unused. The following could be used as a drop-in replacement for os-locale:
The benefit is a large drop of production dependencies. Currently a project with yargs as the only dependency installs 53 modules / 1.8MB to node_modules. Without os-locale this becomes 26 modules / 1.1MB. The size reduction is not my primary interest of this issue, the goal is cutting the number of modules that have to be audited in half.
The text was updated successfully, but these errors were encountered:
This eliminates half the dependencies of yargs without any change in
functionality. The extra dependencies were used by the os-locale module
to execute detection utilities, this execution functionality was always
disabled by yargs.
Fixesyargs#1354
Due to yargs passing
spawn: false
to os-locale most of the functionality of that module is unused. The following could be used as a drop-in replacement for os-locale:The benefit is a large drop of production dependencies. Currently a project with
yargs
as the only dependency installs 53 modules / 1.8MB to node_modules. Without os-locale this becomes 26 modules / 1.1MB. The size reduction is not my primary interest of this issue, the goal is cutting the number of modules that have to be audited in half.The text was updated successfully, but these errors were encountered: