Building a Command Line Tool with Javascript

preview_player
Показать описание
Command-line interface is one of the preferred ways for nerds like us to get stuff done. People who are better at using keyboard then mouse. In this video we will learn how to build a Javascript command line interface using NodeJS that run from anywhere in your command terminal. Our example will be building a command line utility called touch5 which is a knock off thr touch command that creates an HTML5 file instead. We will learn how to create the code, create a shortcut command for our code, and link it with the OS so we can run it from anywhere. Lets get to it guys.

Source Code:

Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

0:04 ...people who are better especially in using keyboard than mouse. I never saw it that way but it's true. Very informative video. Thank you

uchennanwanyanwu
Автор

Thanks Hussein :) Looking forward to the next tutorial on how to package up the code and deploy as a npm module!

waterislife
Автор

Bro you are above awesome . love from Pakistan. Will meet you one day insha'Allah

saoudahmedkhan
Автор

Can't run the command on windows as it doesn't recognize usr/bin/env
The writing function is working
The npm link is working
The sh file is the problem

mohhamedyousef
Автор

can we do this from a webpage with user input?

abinrahman
Автор

Nice class... I'm learning a lot about it with you...congratulations

felipemartenexen
Автор

What is equivalent of /usr/bin/env in window if I want to have command line utility from window terminal

jivanmainali
Автор

I'm using Windows :(, when i execute `npm link` but when i execute my command gives me an error "Command not found"

karimmuhammad
Автор

Very good lesson. Many useful idea. Thanks!

caiyu
Автор

You actually need to change the video title! It's not a command line interface, is a command line utility...

EdiFerreiranet
Автор

I'm completely confused at what this is accomplishing

jebronekitty