generator-node-modules

A node module generator for yo

Usage no npm install needed!

<script type="module">
  import generatorNodeModules from 'https://cdn.skypack.dev/generator-node-modules';
</script>

README

generator-node-modules Build Status

A node module generator for yo

Install

$ npm install --global yo generator-node-modules

Usage

With yo:

$ yo node-modules

There are multiple command-line options available:

$ yo node-modules --help
Usage:
  yo node-modules [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
  --coveralls     # Upload coverage to coveralls.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-coveralls). You will be prompted for any options not passed on the command-line.

Tests

$ npm test

Related

License

MIT © Bram Kok