1 | # module [![NPM version](http://img.shields.io/npm/v/module.svg?style=flat-square)](https://www.npmjs.org/package/module)
|
2 |
|
3 | Generate the minimal skeleton/boilerplate of a new Node.js module.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | Install the package with NPM:
|
8 |
|
9 | ```bash
|
10 | $ npm install -g module
|
11 | ```
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Example:
|
16 |
|
17 | ```bash
|
18 | # Create a module in the current working directory:
|
19 | $ module
|
20 |
|
21 | # Create a module in the "hello" directory (relative path):
|
22 | $ module hello
|
23 |
|
24 | # Create a module in the "hello" directory (absolute path):
|
25 | $ module /tmp/hello
|
26 | ```
|
27 |
|
28 | If the specified directory doesn't exist yet, it will be automatically created.
|