You can write shell scripts in Javascript?!
Barely Coding with Daniel Bark
In this video tutorial I first make an introduction to what shell scripts are, how the PATH variable is related to shell scripts and finally what is required to make a folder where you can store your custom shell scripts. I then show how to set the shell script file to use javascript and make a simple hello world proof of concept. I then build two small utility shell scripts. One that copies the current folder path to the clipboard. Then a second one that creates a .gitignore file in the current folder with node_modules inside it.
The Code: https://github.com/danba340/jsshell
Say hi on twitter: https://twitter.com/barelydaniel
Timestamps: 0:00 Intro 0:45 How shell scripts work and the PATH variable 1:45 Adding a folder to PATH 3:00 Creating a Hello World shell script 4:05 Shell scripting in Javascript 5:20 Creating a "copy pwd to clipboard" shell script 7:30 Creating a .gitignore file shell script 11:25 Send me your Javascript shell scripts ... https://www.youtube.com/watch?v=0Gsq5q898Nw
86880128 Bytes