🌱 Writing Shell Scripts with Modern JavaScript
Add this to your js file and chmod + x
to give execute permissions
#! node
You can now call the file on the command linen yourfile.js
and do stuff. Assuming you have node installed.
You can take this further and have imports and lots of js at your disposal