Skip to content

About

Cross-platform `chmod +x`. Easily make a Node.js CLI executable.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

execify-cli

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:

// package.json
"scripts": {
	"build": "tsc && execify --pkg"
}

Install

npm install --save-dev execify-cli
Other Package Managers

yarn add --dev execify-cli
pnpm add --save-dev execify-cli

Usage

Usage
  $ 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)

Related

  • 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.

About

Cross-platform `chmod +x`. Easily make a Node.js CLI executable.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages