Book Image

CoffeeScript Application Development Cookbook

By : Mike Hatfield
Book Image

CoffeeScript Application Development Cookbook

By: Mike Hatfield

Overview of this book

Table of Contents (18 chapters)
CoffeeScript Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In recent years, IT operations staff has turned to software development to help simplify their day-to-day tasks through scripting and automation. In this chapter, we will look at ways that DevOps can use CoffeeScript to perform some common tasks.

We will begin by demonstrating how we can execute shell commands from our CoffeeScript files using Node's child_process library.

We will then see how we can manage our filesystem with our scripts, including copying, moving, deleting, and archiving files and directories.

Next, we will see how we can load and parse Comma-separated Values (CSV) and fixed-width files.

We will end the chapter by looking at ways we can format date and numeric data that is better suited for human interpretation.