https://github.com/tommy-mitchell/execify-cli
Easily make a Node.js CLI executable. Sets permissions (`chmod +x`) and handles common TypeScript conversions.
https://github.com/tommy-mitchell/execify-cli
Last synced: 9 months ago
JSON representation
Easily make a Node.js CLI executable. Sets permissions (`chmod +x`) and handles common TypeScript conversions.
- Host: GitHub
- URL: https://github.com/tommy-mitchell/execify-cli
- Owner: tommy-mitchell
- License: mit
- Created: 2023-08-08T16:09:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T02:13:22.000Z (over 2 years ago)
- Last Synced: 2025-03-11T07:21:30.633Z (10 months ago)
- Language: TypeScript
- Homepage: https://npm.im/execify-cli
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# execify-cli
Easily make a Node.js CLI executable. Sets permissions (`chmod +x`) and handles common TypeScript conversions. See [Roadmap](#roadmap) for more details.
## Install
```sh
npm install --save-dev execify-cli
```
Other Package Managers
```sh
yarn add --dev execify-cli
```
## Usage
```
Usage
$ execify [globs…]
Options
--package, --pkg, -p Set every binary in package.json as executable
--fix-shebang Convert shebangs to "#!/usr/bin/env node"
--all Set all flags
Examples
$ execify cli.js
$ execify --pkg test/fixtures/**/cli.js
$ execify --fix-shebang dist/ts-cli.js
```
## Roadmap
v0.1.0 is a minimal release. The following features were cut and will be added in the next minor version:
- TypeScript import path mapping from `tsconfig.json` `paths` option
- A flag to fix all TypeScript-related conversions
- Logging of completed/failed files, improved error handling
## Related
- [chmodx](https://github.com/johnowennixon/chmodx)
- [ts-fix-shebang](https://github.com/johnowennixon/ts-fix-shebang)
- [make-executable](https://github.com/bconnorwhite/make-executable)
- [replace-in-files-cli](https://github.com/sindresorhus/replace-in-files-cli)
- [tsconfig-replace-paths](https://github.com/jonkwheeler/tsconfig-replace-paths)