This repo is a template based on This DEV article.
This is a template for using javascript to create complex CLI tools / games that can be packaged into a single binary that can be run on most systems (Even systems that dont have node! ).
A simple example has already been included at src/index.ts. To package your script simply:
npm run build
A script will be generated specifically for your system, to change what system the script is designed for change the package script according to the pkg npm package Once created you can run your script:
./dist/start
Happy scripting!