create-shebang
v1.0.1
Published
Create Shebang is a simple Node.js CLI tool that adds a Shebang (`#!/usr/bin/env node`) to the specified file. It can be initialized with the command `npm init shebang`.
Readme
Create Shebang
Create Shebang is a simple Node.js CLI tool that adds a Shebang (#!/usr/bin/env node) to the specified file. It can be initialized with the command npm init shebang.
Usage
You can initialize the tool using the npm init command:
npm init shebangExample Interaction
When you run npm init shebang, the tool will prompt you for the target file path:
$ npm init shebang
Shebang Adder Tool
==================
This tool adds a Shebang (#!/usr/bin/env node) to the specified file.
? Enter the file path to add a Shebang: example.js
Shebang successfully added to file: /path/to/example.jsIf the file already contains a Shebang, the tool will notify you:
? Enter the file path to add a Shebang: example.js
The file already contains a Shebang, no need to add one.