All Projects → otiai10 → lookpath

otiai10 / lookpath

Licence: MIT license
The minimum and most straightforward way to check if command exists and where the executable is, without spawning child_process.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lookpath

get-bin-path
Get the current package's binary path
Stars: ✭ 25 (-48.98%)
Mutual labels:  binary, path, executable
xbedump
Tool to dump header information or sign original Xbox executables
Stars: ✭ 18 (-63.27%)
Mutual labels:  binary, executable
Nexe
🎉 create a single executable out of your node.js apps
Stars: ✭ 10,565 (+21461.22%)
Mutual labels:  binary, executable
wasm-joey
Serverless Wasm - A lightweight Node.js application for deploying and executing WebAssembly(Wasm) binary-code via HTTP
Stars: ✭ 48 (-2.04%)
Mutual labels:  binary, executable
ELFDump
ELFDump is a C parser for ELF64 object files.
Stars: ✭ 15 (-69.39%)
Mutual labels:  binary, executable
basgo
basgo compiles BASIC-lang to Golang. Then 'go build' can translate code to native executable binary.
Stars: ✭ 31 (-36.73%)
Mutual labels:  binary, executable
HatVenom
HatVenom is a HatSploit native powerful payload generation tool that provides support for all common platforms and architectures.
Stars: ✭ 84 (+71.43%)
Mutual labels:  binary, executable
Nar
node.js application archive - create self-contained binary like executable applications that are ready to ship and run
Stars: ✭ 428 (+773.47%)
Mutual labels:  binary, executable
Laravel Initializer
A convenient way to initialize your application
Stars: ✭ 597 (+1118.37%)
Mutual labels:  command, executable
BasicExercises
📘 Personal basic practice test playground.
Stars: ✭ 84 (+71.43%)
Mutual labels:  binary
pathtools
DEPRECATED This twig plugin for the Craft CMS brings convenient path & url manipulation functions & filters to your Twig templates.
Stars: ✭ 19 (-61.22%)
Mutual labels:  path
heroku-binary-buildpack
Heroku buildpack to execute binaries.
Stars: ✭ 29 (-40.82%)
Mutual labels:  binary
exists-maven-plugin
Check if artifact exists in remote maven repository
Stars: ✭ 39 (-20.41%)
Mutual labels:  exists
cargo-binstall
Binary installation for rust projects
Stars: ✭ 421 (+759.18%)
Mutual labels:  binary
GoogleMaps-SP
Swift Package for Google Maps iOS SDK
Stars: ✭ 105 (+114.29%)
Mutual labels:  binary
vscode-powertools
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
Stars: ✭ 44 (-10.2%)
Mutual labels:  command
lwpkt
Lightweight packet protocol structure for multi-device communication focused on RS-485
Stars: ✭ 71 (+44.9%)
Mutual labels:  command
cmake-init
The missing CMake project initializer
Stars: ✭ 1,071 (+2085.71%)
Mutual labels:  executable
bin2c
Convert binary files to C arrays for easy inclusion with your code.
Stars: ✭ 21 (-57.14%)
Mutual labels:  binary
path-to-regexp-php
PHP port of https://github.com/pillarjs/path-to-regexp
Stars: ✭ 21 (-57.14%)
Mutual labels:  path

lookpath

npm version npm download Node.js CI CodeQL codecov Maintainability FOSSA Status

To check if the command exists and where the executable file is, WITHOUT using child_process.

npm install lookpath

Example usage

const { lookpath } = require('lookpath');

const p = await lookpath('bash');
// "/bin/bash", otherwise "undefined"

Advanced usage

const p = await lookpath('bash', {
  include: ['/home/hiromu/.bin'],
  exclude: ['/mnt']
});
// include: Do scan also under `~/.bin`
// exclude: Do NOT scan under `/mnt`

Motivation

Issues

Any feedback would be appreciated ;)

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].