Video description
In this Shell Scripting with JavaScript training course, expert author Wes Higbee will teach you how to use Node.js to automate common tasks. This course is designed for users that are already familiar with JavaScript.
You will start by learning how to connect shell concepts, then jump into learning about ShellJS, including thumbnail conversion, prompting for input, and portability and LWIP on Windows. From there, Wes will teach you about options with commander, functional pipelines, and reusing scripts. Finally, this video tutorial will teach you how to test shell scripts, including how to set up Mocha and test weekly averages.
Once you have completed this computer based training course, you will be fully capable of using Node.js to write shell scripts to automate common tasks. Working files are included, allowing you to follow along with the author throughout the lessons.
Table of contents
-
A First JS Shell Script
- Is This Course For Me 00:05:03
- About The Author 00:00:58
- Shell Scripting Mac, Linux, Unix With BASH 00:05:56
- Shell Scripting Windows 00:05:35
- Why NodeJs 00:04:20
- NodeJs Versions And Mac Tooling 00:05:14
- Windows Tooling 00:02:18
- The NodeJs REPL As A Shell 00:02:39
- Benefit - NPM Ecosystem Of Packages 00:06:07
- Benefit - Object Oriented 00:03:24
- Benefit - Cross Platform Consistency 00:01:18
-
Connecting Shell Concepts
- A First JS Script 00:03:42
- NodeJs Globals 00:03:40
- Environment Variables 00:03:06
- Writing To Files 00:04:56
- STDOUT/STDERR 00:03:59
- Exit Codes 00:03:03
- MyPyramid Food Raw Data Example 00:03:21
- The Path Module 00:07:01
- Using ~ In Paths 00:03:20
- Reading A File 00:01:24
- Piping Output 00:01:19
- Pretty Print XML 00:03:43
- Arguments 00:03:46
- Challenge - Word Count 00:01:13
-
ShellJS
- ShellJS 00:03:40
- ls) And echo() 00:04:20
- rm() And mkdir() 00:04:55
- Thumbnail Conversion Part - 1 00:06:04
- Thumbnail Conversion Part - 2 00:02:07
- exec() 00:01:46
- find() And filter() 00:03:12
- exit() 00:00:47
- cat() And to() 00:01:39
- env 00:00:27
- Prompting For Input 00:03:51
- Portability And lwIP On Windows 00:04:41
- Resources 00:01:34
-
Options With Commander
- Commander 00:05:38
- Arguments With Commander 00:04:00
- Automatic Help 00:00:45
- Required Arguments 00:01:11
- Argument Defaults 00:01:24
- Splitting Out An Options Module 00:03:30
- Challenge 00:01:48
-
Functional Pipelines
- Back To CSVs 00:01:06
- Average Closing Price 00:04:37
- Functional Sum 00:06:12
- Separation Of Concerns 00:02:46
- Sorting Prices 00:02:29
- Average Price By Week 00:06:08
-
Reusing Scripts
- Running The Script Anywhere 00:02:01
- Setting Up A Global NPM Package 00:05:51
- Global Packages On A Mac 00:02:37
- Global Packages On Windows 00:04:18
- Updating Our Package 00:01:29
- Publishing The Script 00:03:24
-
Testing Shell Scripts
- The Desire To Test 00:01:46
- Setting Up Mocha 00:04:13
- Testing Weekly Averages Part - 1 00:03:51
- Testing Weekly Averages Part - 2 00:04:14
- Course Conclusion And Resources 00:05:07
Product information
- Title: Shell Scripting with JavaScript
- Author(s):
- Release date: February 2016
- Publisher(s): Infinite Skills
- ISBN: 9781771376075
You might also like
video
Learning Node.js, 2/e
A clear, practical introduction to the important new web development technology for creating web server applications …
video
JavaScript Programming
In this Beginners JavaScript Beginners training course, expert author Craig Buckler teaches you the basics of …
video
jQuery for Application Development: From Fundamentals to jQuery Projects
jQuery remains the most popular client-side development library on the web. Designed to do some of …
video
Getting Started with Node.js
In this Getting Started with Node.js training course, expert author Wes Higbee will teach you everything …