npm Flashcards
1
Q
What is NPM?
A
Public software registry. You can use npm to share and borrow packages. a way to share code with other developers. cli, registry, and website
2
Q
What is a package?
A
reusable code. Its a directory with one or more files in it.
3
Q
How can you create a package.json with npm?
A
npm init –yes
4
Q
What is a dependency and how to you add one to a package?
A
dependencies are packages that other packages need to perform a given task. you can add dependencies by using npm install
5
Q
What happens when you add a dependency to a package with npm?
A
node_modules gets added to that directory. that dependency is added within the package.json file.