modulelint检测您的模块是否优秀
Module LintNode
README.md
bin
modulelint
index.js
lib
checklist //
folder.js // checkrule
modulelint.js
package.json
checklistrulecheck
/**
*
*/
exports.rule = "";
/**
*
* @param {String} source
* @param {Function} callback
*/
exports.check = function (source, callback) {
//
// callback
if (err) {
callback(err);
} else {
//
// result = {score: 10, info: somereason};
callback(null, result);
}
};
npm install modulelint -g
modulelint -i ~/git/modulelint
modulelint jacksontian $modulelint -i .
/Users/jacksontian/git/modulelint
10
==============
folder
10
1. folder `doc` is missing
2. folder `test` is missing
doc``test
modulelint jacksontian $modulelint -i .
/Users/jacksontian/git/modulelint
30
==============
folder
30
git-summary
2012-11-26
project : modulelint
repo age : 5 weeks
active : 20 days
commits : 60
files : 14
authors :
33 Jackson Tian 55.0%
15 XiNGRZ 25.0%
6 tianqi 10.0%
5 Hyvi 8.3%
1 Will Wen Gunn 1.7%