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
Who This Book Is For
Table of Contents
Chapter 1: Instant Node Package Manager
So, what is Node Package Manager?
Quick start – creating your first npm module
Top 10 features you need to know about
People and places you should get to know
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
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.
Juzer Ali was born and brought up in a small Indian town of Mhow near Indore, Madhya Pradesh. After finishing school in Mhow he took up an Electronics and Telecommunication Engineering course at Devi Ahilya Vishwa Vidyalaya, Indore. During his college days, irrespective of his branch of study, he was always interested in learning computer programming.
Although he was inclined towards writing since childhood, he never undertook serious writing on a technical subject before this book. He has been writing short fiction stories on his blog since adolescence.
We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.
As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.
Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.
Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.
A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.
Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.
Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.
Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.
Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.