Show a project's bower dependencies and their licenses
#Installation
npm install -g bower-license
#Usage Bower license comes in both command line and as an npm library:
bower-license
├─ highlight
│ └─ licenses: UNKNOWN
├─ [email protected]
│ └─ licenses: MIT*
├─ [email protected]
│ ├─ licenses: MIT*
│ └─ homepage: http://millermedeiros.github.com/js-signals/
├─ [email protected]
│ └─ licenses: MIT*
├─ [email protected]
│ ├─ licenses: UNKNOWN
│ └─ homepage: https://github.com/highslide-software/highcharts.com
├─ [email protected]
│ ├─ licenses: MIT*
│ └─ homepage: https://github.com/millermedeiros/Hasher
├─ jquery-throttle-debounce@undefined
│ ├─ licenses: MIT*
│ └─ homepage: https://github.com/cowboy/jquery-throttle-debounce
├─ [email protected]
│ ├─ licenses: MIT*
│ └─ repository: https://github.com/AceMetrix/jquery-deparam
├─ [email protected]
│ ├─ licenses: MIT*
│ └─ homepage: https://github.com/Modernizr/Modernizr
├─ [email protected]
│ ├─ licenses: MIT*
│ └─ homepage: https://github.com/DmitryBaranovskiy/raphael
├─ [email protected]
│ ├─ licenses: MIT*
│ ├─ homepage: https://github.com/kriskowal/es5-shim
│ └─ repository: http://github.com/kriskowal/es5-shim
├─ [email protected]
│ ├─ licenses: MIT*
│ ├─ homepage: https://github.com/vakata/jstree
│ └─ repository: https://github.com/vakata/jstree
├─ [email protected]
│ ├─ licenses
│ │ └─ 0: MIT
│ ├─ homepage: https://github.com/cujojs/meld
│ └─ repository: https://github.com/cujojs/meld
├─ keymaster@undefined
│ ├─ licenses: MIT*
│ ├─ homepage: https://github.com/madrobby/keymaster
│ └─ repository: https://github.com/madrobby/keymaster
├─ [email protected]
│ ├─ licenses: MIT*
│ ├─ homepage: https://github.com/knockout/knockout
│ └─ repository: https://github.com/SteveSanderson/knockout
├─ [email protected]
│ └─ licenses
│ └─ 0: MIT
└─ [email protected]
├─ licenses: Apache*
└─ repository: https://github.com/twitter/bootstrap
Export options:
bower-license -e json
Used as a library:
var license = require('bower-license');
license.init({directory: '/path/to/bower_components'}, function(licenseMap, err){
if (!err) {
console.log(licenseMap);
}
});
#Notes Any asterisks (*) after a license value were implictly discovered/detected by their README or LICENSE file and may not be truly reliable.