Resolves the bin path for a module.
import resolveBin from 'resolve-bin-sync';const binPath = resolveBin('package-name'); // bin string or bin entry named same as the moduleconst namedBinPath = resolveBin('package-name', 'named-bin'); // the named bin Copy
import resolveBin from 'resolve-bin-sync';const binPath = resolveBin('package-name'); // bin string or bin entry named same as the moduleconst namedBinPath = resolveBin('package-name', 'named-bin'); // the named bin
API Docs