npm-intro Flashcards
What is NPM?
NPM is a database that developers can share their codes or for others to reuse that code.
What is a package?
a package (sometimes called a module) is a directory with files containing reusable codes in it, and it also has a file called package.json with some metadata about this package.
How can you create a package.json with npm?
use the npm init command with the –yes or -y flag.
What is a dependency and how to you add one to a package?
A dependency is a package that depends on another package to run.
And to add one, you could use the npm install command.
What happens when you add a dependency to a package with npm?
It download the source code and place it in the node-module directory. The package is automatically listed in the package.json file, under the dependencies list.