Skip to content

Instantly share code, notes, and snippets.

View bobjunga's full-sized avatar

Robert E. Griffith bobjunga

  • Junga
  • New York, USA
View GitHub Profile
@bobjunga
bobjunga / extensionless-nodejs-executable.md
Last active April 1, 2020 22:08
extensionless-nodejs-executable.md

Extensionless NodeJS Executable using non-default Node Options

The Issue

Commands installed into system folders should not have extensions. Its not relavant to the users of commands what language a command is written in. OSs use the shebang syntax to determine what engine should process a text script file.

$ cat /user/bin/mycmd 
#!/usr/bin/env node
console.log('Hello World');