Skip to content

Find executable in PATH (or any file in a set of dirs) in clojure

License

Notifications You must be signed in to change notification settings

rwstauner/which-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net.r4s6.which

Find executable in PATH (or any file in a set of dirs).

Works with jvm, babashka, and clojurescript on node.

Usage

; [net.r4s6/which "0.1.0"]

(require '[net.r4s6.which :as w])

(w/which "exe")
; "/usr/bin/exe"

(w/find-in ["dir1" "dir2"] "file" exists?)
; "dir2/file"

(w/which "nope")
; nil

License

Copyright © 2021 Randy Stauner

Distributed under the Eclipse Public License version 1.0.

About

Find executable in PATH (or any file in a set of dirs) in clojure

Resources

License

Stars

Watchers

Forks

Packages

No packages published