Created
August 27, 2015 05:48
-
-
Save renevo/f13a2ecec36810859492 to your computer and use it in GitHub Desktop.
Simple way to output all licenses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('This is how wars begin'); | |
var checker = require('license-checker'); | |
checker.init({ | |
start: './' | |
}, function(json) { | |
Object.keys(json).forEach(function(license) { | |
console.log('%s License: %s', license, json[license].licenses); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment