Npm-Intro Flashcards

1
Q

What is NPM?

A

an online registry that allows software developers to share and borrow each others code in packages.

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

What is a package?

A

A directory with one or more files in it that can be reused by other software developers or clients

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

Navigate to the root directory of your package and then run the command line npm init –yes

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

dependencies are packages that your application uses. To add a dependency to a package to use the npm install command

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

When you add a dependency to a package the package will now have access to the dependent files

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