Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Make your Node.js scripts executable!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

hashbangify - make your node scripts executable!

v0.1.0

Installation

hashbangify is on npm:

 [sudo] npm install hashbangify -g

Usage

Usage: hashbangify myScript.js [interpreter]

interpreter defaults to node.

This script will do several things.

  • find where your interpreter is installed by calling which.
  • read your target script into memory.
  • delete it.
  • open a new file with the same name, starting with the appropriate hashbang.
  • write your target script back to the file.
  • chmod 0755 is then called prior to exit.
Something went wrong with that request. Please try again.