NPM INTRO Flashcards

1
Q

What is NPM?

A

software registry that has 3 components where user can share and use code packages
website
CLI
registry
no prescribed meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a package?

A

A package is reuseable code that is ‘packaged’
directory
package.json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you create a package.json with npm?

A

npm init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a dependency and how to you add one to a package?

A

3rd party code Packages required by your application , npm install ‘whatever’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when you add a dependency to a package with npm?

A

The code will be functional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly