bower-license
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -18,2 +18,5 @@ var treeify = require('treeify'); | ||
// check each bower package recursively | ||
if (!fs.existsSync(options.directory)){ | ||
throw 'Run bower install first'; | ||
} | ||
var packages = fs.readdirSync(options.directory); | ||
@@ -58,4 +61,7 @@ packages.forEach(function(package){ | ||
} | ||
exports.print = function(sorted){ | ||
exports.printTree = function(sorted){ | ||
console.log(treeify.asTree(sorted, true)); | ||
} | ||
exports.printJson = function(sorted){ | ||
console.log(sorted); | ||
} |
{ | ||
"name": "bower-license", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Generates a list of bower dependencies for a project", | ||
@@ -26,8 +26,9 @@ "preferGlobal": "true", | ||
"dependencies": { | ||
"treeify": "~1.0.1", | ||
"bower-json": "~0.4.0", | ||
"underscore": "~1.5.2", | ||
"npm-license": "~0.1.9", | ||
"package-license": "~0.1.1" | ||
"package-license": "~0.1.1", | ||
"raptor-args": "~1.0.1", | ||
"treeify": "~1.0.1", | ||
"underscore": "~1.5.2" | ||
} | ||
} |
@@ -74,3 +74,11 @@ Bower License | ||
Export options: | ||
``` | ||
bower-license -e json | ||
``` | ||
Used as a library: | ||
``` | ||
var license = require('bower-license'); | ||
@@ -81,4 +89,6 @@ license.init('/path/to/package', function(licenseMap){ | ||
``` | ||
#Notes | ||
Any asterisks (*) after a license value were implictly discovered/detected by their README or LICENSE file and may not be truly reliable. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18451
57
93
6
+ Addedraptor-args@~1.0.1
+ Addedraptor-args@1.0.3(transitive)