Scaffolding a module

Let's begin our exploration by setting up a typical file and directory structure for a Node module. At the same time, we'll be learning how to automatically generate a package.json file (we refer to this throughout the book as initializing a folder as a package). We'll also configure npm (Node's package managing tool) with some defaults, which can then be used as part of the package generation process.

In this recipe, we'll create the initial scaffolding for a full Node module.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset