@radham/is-x
v0.5.1
Published
Check if a file is executable for all.
Maintainers
Readme
@radham/is-x
Check if a file is executable for all.
Install
As a system CLI tool:
npm install --global @radham/is-xAs a project dependency:
npm install @radham/is-xUsage
CLI
$ is-x --help
Check if a file is executable for all.
Usage
$ is-x [OPTIONS] <FILE> [ADDITIONAL FILES...]
Options
--help, -h Display this message.
--verbose, -V Display messages pertaining to each operation.
--version, -v Display the application version.API
import { isExecutable, isExecutableSync } from '@radham/is-x';
const filepath = './bin';
// Asynchronous...
await isExecutable(filepath); // > Promise<boolean>
// Synchronous...
isExecutableSync(filepath); // > booleanSee Also
License
The BSD 3-Clause License. See the license file for details.
