Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 333 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 333 Bytes

ts-shebang

Run your ts files as executables

To use

  • Run npm install -g ts-shebang
  • Create a typescript file with a shebang at the top:
#!/usr/bin/env ts-shebang

console.log('Hooray!');
  • Run chmod +x {your typescript file} from your terminal to make it executable
  • Execute your typescript file