O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

In step 1, we must externally collect and install the extra Node.js modules that we need to work with. By default, Node.js stores modules that your application depends upon within the same directory as the application, in a sub-directory called node_modules. This has the advantage of making your application quite portable. You can simply zip up the application directory from your development environment, install it to production and reasonably expect things to work.

In step 2, we start writing the Node.js code for our application which begins with the usual interpreter definition to the operating system. We also create global constants to refer to both the built-in and the external modules that we're going to use.

In step ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required