Documentation for Simbo's Packages
    Preparing search index...

    Module @simbo/find-bin - v2.0.0

    Find Bin

    📦 @simbo/find-bin

    A lightweight utility to locate the executable path of a command.

    It searches for binaries in local node_modules/.bin directories first, and falls back to globally available executables.

    • Check if a command exists and resolve its path

    • Searches upward through node_modules/.bin folders

    • Falls back to global executables via which

    • Async, Promise-based API

    • Fully typed with TypeScript

    Requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0.

    Install @simbo/find-bin from the npm registry:

    npm i [-D] @simbo/find-bin
    

    For a complete API reference, see the documentation.

    import { findBin } from '@simbo/find-bin';

    const binPath = await findBin('eslint');

    if (binPath) {
    console.log(`Found eslint: ${binPath}`);
    } else {
    console.error('eslint not found.');
    }

    MIT © Simon Lepel

    Options
    findBin