Book Image

Node.js Blueprints

By : Krasimir Stefanov Tsonev
Book Image

Node.js Blueprints

By: Krasimir Stefanov Tsonev

Overview of this book

Table of Contents (19 chapters)
Node.js Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Using Node.js as a Command-line Tool

In the previous chapters, we learned how to use Node.js with client-side frameworks, such as AngularJS and Backbone.js. Each time, we ran the backend from the command line. Node.js is suitable not only for web applications, but also for developing command-line tools. The access to the filesystem, the various built-in modules, and the great community makes Node.js an attractive environment for such kind of programs.

In this chapter, we will detail the process of developing a command-line tool to upload pictures on Flickr. By the end of this chapter, we will have created a program that finds images in a particular directory and uploads them on Internet portals.