Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - sindresorhus/generator-nm: Scaffold out a node module

Scaffold out a node module. Contribute to sindresorhus/generator-nm development by creating an account on GitHub.

Visit SiteGitHub - sindresorhus/generator-nm: Scaffold out a node module

GitHub - sindresorhus/generator-nm: Scaffold out a node module

Scaffold out a node module. Contribute to sindresorhus/generator-nm development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

[!IMPORTANT] Deprecated. Just use this boilerplate instead.

generator-nm

Scaffold out a node module

Optionally with a CLI.

This is what I use for my own modules.

Install

npm install --global yo generator-nm

Usage

With yo:

yo nm

There are multiple command-line options available:

$ yo nm --help

  Usage:
    yo nm [options]

  Options:
    --help          # Print the generator's options and usage
    --skip-cache    # Do not remember prompt answers                      Default: false
    --skip-install  # Do not automatically install dependencies           Default: false
    --org           # Publish to a GitHub organization account
    --cli           # Add a CLI
    --coverage      # Add code coverage with nyc
    --codecov       # Upload coverage to codecov.io (implies --coverage)

The --org option takes a string value (i.e. --org=avajs). All others are boolean flags and can be negated with the no prefix (i.e. --no-codecov). You will be prompted for any options not passed on the command-line.

Tip

Use chalk if you want colors in your CLI.

NodeJS Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.