node和package的區別與聯繫
一、package的形式應該是下面任意一種:
a) 包含文件的文件夾
b) 滿足a條件的gzip、tar壓縮包
c) 指向b的url
d) A @ that is published on the registry with ( c )
e) A @ that points to ( d ).
f) A that has a latest tag satisfying ( e ).
g) A git url that, when cloned, results in ( a ).
A module is any file or directory in the node_modules directory that can be loaded by the require() function.
二、module的形式應該是下面任意一種:
a) A folder with a file containing a “main” field.
b) A folder with an file in it.
c) A JavaScript file.
小結:一個module是不是package就看其是否擁有文件