Skip to content

npm-janitor/node-npm-janitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8afab77 Β· Nov 10, 2016

History

7 Commits
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015
Nov 7, 2016
Sep 29, 2015
Sep 29, 2015
Nov 10, 2016
Sep 29, 2015

Repository files navigation

npm-janitor Build Status

Validates package.json for all the user modules.

Install

$ npm install --save npm-janitor

Usage

var npmJanitor = require('npm-janitor');

npmJanitor('hemanth', function(err, data){
  if(!err) console.log(data);
});

// data would be array of objects that look like:

/*
{ module: 'an-async',
  homepage: 'https://github.com/hemanth/node-an-async',
  info: 
   { valid: true,
     warnings: [ 'Missing recommended field: contributors' ],
     recommendations: 
      [ 'Missing optional field: dependencies',
        'Missing optional field: engines' ] } }
*/

TODO

  • Promisifiy stuff?

License

MIT Β© Hemanth.HM