Skip to content

A CLI tool used to normalize the creation, management, and distribution of NPM packages

Notifications You must be signed in to change notification settings

eliassama/npm-package-cli

Repository files navigation

npm-package-cli

standard-readme compliant

A CLI tool used to normalize the creation, management, and distribution of NPM packages

Table of Contents

Install

CNPM

cnpm i @eliassama/npm-package-cli -g

NPM

npm i @eliassama/npm-package-cli -g

YARN

yarn global @eliassama/npm-package-cli

Usage

Introduce

You can run the following command to complete the operation. Install the npm package globally before using it: @eliassama/npm-package-cli

Commands

config <command>

  • author <option>
    • Description: Set the default author information.
    • options:
      • -n, --name : Set the default author name.
      • -e, --email : Set the default author email.
      • -u, --url : Set the default author address.
    • Synopsis
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -n eliassama 
      npm-template config author --name eliassama 
      
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -e github@elias.ink
      npm-template config author --email github@elias.ink
         
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -u https://github.com/eliassama
      npm-template config author --url https://github.com/eliassama
      
      # Set the email address, URL, and name of the default author.
      # Run either of the following commands.
      npm-template config author -n eliassama -e github@elias.ink -u https://github.com/eliassama
      npm-template config author --name eliassama --email github@elias.ink --url https://github.com/eliassama
  • help <command>
    • Description: Use the help command to view the command information.
    • commands:
      • author: View help information about Author Command
    • Synopsis
        # View help information about Author Command
        npm-template config help author

init <option>

  • Description: Initialize the NPM package base file.
  • options:
    • -ts, --typescript: Initialize to create a typescript NPM package.
  • Synopsis
      # Initialize to create a typescript NPM package.
      # Run either of the following commands.
      npm-template init -ts
      npm-template init --typescript 

help <command>

  • Description: Use the help command to view the command information.
  • command:
    • config: View help information about config Command.
    • init: View help information about init Command.
  • Synopsis
      # View help information about config Command.
      npm-template help config
      
      # View help information about init Command.
      npm-template help init

Maintainers

@eliassama

About

A CLI tool used to normalize the creation, management, and distribution of NPM packages

Resources

Stars

Watchers

Forks

Packages

No packages published