Have a personal or library account? Click to login
Instant Node Package Manager Cover

Instant Node Package Manager

Create your own node modules and publish them on npm registry, automating repetitive tasks in between

Paid access
|Oct 2013
Product purchase options

Create your own node modules and publish them on npm registry, automating repetitive tasks in between

Key Features

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Create and distribute node modules
  • Learn how to publish executables
  • Automate the installation of dependencies

Book Description

Node.js is the new buzz in town and has a vibrant community.It ships with npm, which is a tool that helps automate various development, deployment, and installation of node modules, and makes the process much easier.

Instant Node Package Module is a practical guide to authoring and distributing node modules, and also for creating and managing private, standalone node.js projects.

Starting with getting node.js installed and running on a variety of platforms, we then proceed to learn about code modularization and achieving it in node.js. Picking up a practical example, we will then explore the whole process and life cycle of conceiving, writing, and publishing a node module. We will also learn how to exploit a toolsincluded with npm to automate various development and deployment steps.

Later on, we will discover the power of npm and how its different features and configurations can save large amounts of time by providing a helping hand for automating repetitive tasks between writing and publishing your modules.

What you will learn

  • Install node.js and npm
  • Modularize code in different files and folders
  • Create a working node module
  • Publish your node module on the npm registry
  • Create node executables and put them in the system s path
  • Bootstrap two modules together so that both can keep abreast with one another
  • Lock down dependencies to avoid surprises
  • Configure the local npm installation to provide some of your own convenient defaults

Who this book is for

Intended for readers who want to create their first node.js modules. The programming paradigm of JavaScript is not covered so a foundation in these concepts would be beneficial.

Table of Contents

    PDF ISBN: 978-1-78328-334-7
    Publisher: Packt Publishing Limited
    Copyright owner: © 2013 Packt Publishing Limited
    Publication date: 2013
    Language: English
    Pages: 56