Parses and manages package bin field entries.
The bin field in package.json maps command names to script files.
Supports both string shorthand and map formats.
Summary
Functions
Scans installed packages and collects all available binaries.
Lists all command names provided by a package.
Counts the number of binaries a package provides.
Extracts bin entries from package.json data.
Checks if a package provides any binaries.
Resolves the script path for a given command.
Functions
Scans installed packages and collects all available binaries.
Lists all command names provided by a package.
@spec count(map()) :: non_neg_integer()
Counts the number of binaries a package provides.
Extracts bin entries from package.json data.
Returns a map of command name → script path.
Checks if a package provides any binaries.
Resolves the script path for a given command.