This is our formula to rank modules based on statistical data from module-data
.
npm i module-rank
var moduleRank = require('module-rank')
var standardData = { ... }
var options = {
licensesWhiteList: ['MIT']
}
moduleRank(standardData, [options,] callback)
We have three areas of concern and those are:
- Security
- Reliability
- License
The criteria of Security
for public modules is:
noVuln
- This is an array of objects that comes fromsnyk
.
For private modules, there is no criteria to evaluate.
The criteria of Reliability
for public modules is:
hasTests
isNotOutdated
isNotDeprecated
- If this isfalse
, the score of this area of concern is 0.
For private modules is:
hasTests
The criteria of License
for public and private modules is:
hasLicense
licenseOnWhiteList