A CLI tool used to normalize the creation, management, and distribution of NPM packages
cnpm i @eliassama/npm-package-cli -g
npm i @eliassama/npm-package-cli -g
yarn global @eliassama/npm-package-cli
You can run the following command to complete the operation. Install the npm package globally before using it: @eliassama/npm-package-cli
- 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
- 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
- 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