npm-intro Flashcards

1
Q

What is NPM?

A

NPM is the world’s largest software registry, used by developers to share and borrow packages

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

What is a package?

A

a file direcrtory that is described by a package JSON in order to be published to the NPM registry

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

a package JSON file must contain a name and a version. The name consists of a package name and must be lower cased

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

dependancies are packages required by your application in production

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 package JSON gets updated with the newly installed dependancy

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