Repository
Current version released
5 years ago
Versions
is_exe
A port of the https://github.com/isaacs/isexe package for Deno
Usage
deno run --allow-read --allow-env main.ts// main.ts
import { isExecutable } from 'https://raw.githubusercontent.com/eankeen/is_exe/master/mod.ts'
try {
const isExe = await isExecutable('./file')
isExe && console.log('file is executable')
} catch {
console.log('error reading file')
}Versions
You can pin per version. the following are supported version
# deno 1.0.3 and std v0.53.0
https://raw.githubusercontent.com/eankeen/is_exe/v1.0.3/mod.tsAPI
isExecutable(filePath, [options])
Options
ignoreErrorstreat all errors as “no, this is not executable”, but don’t raise them.uidnumber to use as the user idgidnumber to use as the group idpathExtlist of path extensions to use instead of PATHEXT environment variable on Windows (not implemented)