0.1.12 • Published 6 months ago
resolve-bin-sync v0.1.12
resolve-bin-sync
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 module
const namedBinPath = resolveBin('package-name', 'named-bin'); // the named bin