#path #bin #cli

app needs

Check if given bin(s) are available in the PATH

3 unstable releases

new 0.2.0 Mar 14, 2025
0.1.1 Nov 11, 2024
0.1.0 Oct 8, 2024

#21 in #bin

Download history 3/week @ 2024-11-27 2/week @ 2024-12-04 2/week @ 2024-12-11 123/week @ 2025-03-12

123 downloads per month

GPL-3.0-or-later

1MB
153 lines

needs

Check if given bin(s) are available in the PATH.

...multi-threaded of course.

Usage

needs <bin>...

or

# returns 0 if all bins are available, 1 otherwise
needs -q <bin>...

Example

needs eza bat rg gum lua python3 npm

Output

using cli args

needs

using needsfile

needs

Dependencies

~7–17MB
~256K SLoC