node-shebang

Add shebang to your haxe-nodejs generated files
https://github.com/kLabz/haxe-node-shebang

To install, run:

haxelib install node-shebang 0.1.0 

See using Haxelib in Haxelib documentation for more information.

README.md

NodeJS shebang

Add #!/usr/bin/env node shebang to your generated js files when targetting nodejs.

Usage

Install the lib:

haxelib install node-shebang

Add the lib to your hxml file:

# ...
-lib node-shebang

And compile. Your compiled js should now begin with #!/usr/bin/env node. You still need to make it executable yourself, though.

Contributors
klabz
Version
0.1.0
Published
7 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub