@radham/plus-x
v0.6.0
Published
Make a file executable. A portable `chmod +x` equivalent.
Downloads
16
Maintainers
Readme
@radham/plus-x
Make a file executable. A portable chmod +x equivalent.
Install
As a system CLI tool:
npm install --global @radham/plus-xAs a project dependency:
npm install @radham/plus-xUsage
CLI
$ plus-x --help
Make a file executable. A portable chmod +x equivalent.
Usage
$ plus-x [OPTIONS] <FILE> [ADDITIONAL FILES...]
Options
--exclude, -e File or glob to exclude. Can be specified multiple times.
--help, -h Display this message.
--version, -v Display the application version.API
import { makeExecutable, makeExecutableSync } from '@radham/plus-x';
const filepath = './bin';
// Asynchronous...
await makeExecutable(filepath); // > Promise<void>
// Synchronous...
makeExecutableSync(filepath); // > voidSee Also
License
The BSD 3-Clause License. See the license file for details.
