modulelint

modulelint检测您的模块是否优秀

Downloads
9
Stars
23

modulelint

Module LintNode

  • CommonJS10
    • []lib
    • []doc
    • []test
    • package.json
  • []README10001030
  • LicenseLicense10License
  • case2
  • 50%5%595%10
  • Coding Style, 325
  • []105
  • API5
  • []doc5500
  • Change logChange log5History.md
  • []'git summary'contributor210
  • []npm inforegistry.npm.org/module5
  • []travis-ci10passing55
  • []utf-8 without BOMutf8 without BOM5

 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);
  }
};

JavaScript

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-summary2012-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%