LinuxCommandLibrary

npm-author

configuration sets default author for new packages

TLDR

Set author name

$ npm config set init-author-name "[Your Name]"
copy
Set author email
$ npm config set init-author-email "[email@example.com]"
copy
Set author URL
$ npm config set init-author-url "[https://example.com]"
copy
View author config
$ npm config get init-author-name
copy

SYNOPSIS

npm config set init-author-field value

DESCRIPTION

npm author configuration sets default author for new packages. Used by npm init.
The settings populate package.json author field. Saves time during initialization.

PARAMETERS

init-author-name

Package author name.
init-author-email
Package author email.
init-author-url
Package author URL.
--help
Display help information.

CAVEATS

npm config subcommand. Affects npm init only. Global or per-project.

HISTORY

Author configuration is part of npm's init defaults system for package.json creation.

SEE ALSO

npm(1), npm-config(1), npm-init(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community