@akameco/generator-nm

Scaffold out a node module

Usage no npm install needed!

<script type="module">
  import akamecoGeneratorNm from 'https://cdn.skypack.dev/@akameco/generator-nm';
</script>

README

@akameco/generator-nm Build Status

Scaffold out a node module

Optionally with a CLI.

Fork from sindresorhus/generator-nm

Diffs

  • jest
  • prettier
  • flow
  • eslint/eslint-config-precure
  • hasky/lint-staged
  • all-contirbutors

Install

$ npm install --global yo @akameco/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
    --cli           # Add a CLI
    --coverage      # Add code coverage with nyc
    --coveralls     # Upload coverage to coveralls.io (implies --coverage)

Tip

Use chalk if you want colors in your CLI.

License

MIT © akameco