node modules : further details Flashcards

1
Q

external node modules

A

npm is a source of obtaining third party modules

will be installed in node_modules folder

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

npm is a source of obtaining third party modules

will be installed in node_modules folder

A

require(“name/relatepath”) function

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

starting file for the node module

root for all the files and folder

A

index.js

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

you will see this in all node modules

A

package.json

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

to create package.json

A

use npm init

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

version number is specified as

A

3 digits

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

semantic versioning numbering system

A

major.minor.patch
major version - additional features added and not necessarily be backward compatible
minor version - both bug fix and some enhancement added but backward compatible
patch version - bug fix issued

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

devDependencies

A

used only when developing

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

install exact particular version

A

npm install express@4.0.0

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

install patch version higher than specified number available

A

npm install express@”~4.0.0”

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

minor version acceptable

A

npm install express@”^4.0.0”

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

Node modules

A

File based - allow us to design our own modules
Core node modules - provides certain basic functionalities - fs, os, path, util
External modules

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