NPM Flashcards
What is NPM?
node package manager
Allows developers to share code they’ve written so that others may reuse it in their own applications
website npm
registry npm
command line
What is a package?
bits of reusable code (modules) that are shared via npm
directory
text file
How can you create a package.json with npm?
npm init command
–yes or -y option (Default values)
What is a dependency and how do you add one to a package?
npm dependency: package that uses other packages inside of it
can add dependency by manually editing the package.json file or installing a package inside your own package by using command line:
npm install or npm i
What happens when you add a dependency to a package with npm?
package.json file gets updated
If someone were to install your package, the dependencies would also be installed