npm Flashcards
1
Q
What is NPM?
A
a software registry for open source sharing and borrowing of code packages
2
Q
What is a package?
A
A directory with files, including package.json (contains metadata about the package itself)
3
Q
How can you create a package.json with npm?
A
using the “npm init” command
4
Q
What is a dependency and how to you add one to a package?
A
package references that are used by the library. They can be added with npm install
5
Q
What happens when you add a dependency to a package with npm?
A
All of the dependencies and the dependencies of those dependencies are added to the node-modules directory