Detalhes do pacote

resolve-bin-sync

kmalakoff13.3kMIT1.0.4

Resolves the bin path for a module

resolve, bin, resolve-bin, sync

readme (leia-me)

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