npm config get init-author-name
We can omit config
keywordnpm get init-author-name
npm config set init-license "MIT" / npm set init-license "MIT"
package.json
filenpm config set init-author-name "Va. Tand."
We can omit config
keywordnpm set init-author-name "Va. Tand."
name
- name of the app (default is the name of the current folder)
version
- version of the app (default is 1.0.0 - major.manor.patch)
description
- short description for the project
main
- entry point - main JS file
keywords
- keywords that the app is related to
author
- project author
license
- default is ISC (Internet Systems Consortium)package.json
file that contains all of the settings and essential information for the application
Creates the file with the default valuesnpm init -y / npm init --yes
help
page with some useful information about how to use npm
npm
Same as the above commandnpm help
npm --version
Short version of the above commandnpm -v
file.php
to src
directory (if the directory does not exist, the file will be renamed to src
)git mv file.php src
file.php
will be moved to src/
directory (if the destination directory does not exist, git will throw the error: destination directory does not exist..
git mv file.php src/
After running the command, status of the file will be renamed
, but if we did it manually, git will identify the operation as deleted
and new file