Cross-platform chmod +x. Easily make a Node.js CLI executable.
Sets executable permissions on given binaries, or optionally on every binary in the nearest package.json.
Works well in build scripts:
npm install --save-dev execify-cliOther Package Managers
yarn add --dev execify-clipnpm add --save-dev execify-cliUsage
$ execify [paths…]
Options
--package, --pkg, -p Set every binary in package.json as executable
Examples
$ execify foo.js bar.ts baz/xyz.sh
✔ Execified "foo.js"
⚠ File "foo.js" is missing a shebang!
ℹ File "bar.ts" is already executable
✖ Failed to execify "baz/xyz.sh", file not found
$ execify --pkg
✔ Execified "./dist/foo.js" (foo-cli)
✔ Execified "./dist/bar.js" (bar-cli)- chmodx - A cross platform command line utility for setting the executable bits on files.
- make-executable - Set or remove the executable bits on a file.