Détail du package

resolve-bin-sync

kmalakoff3.2kMIT1.0.7

Resolves the bin path for a module

resolve, bin, resolve-bin, sync

readme

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

Documentation

API Docs