zumwald / oss-attribution-generator

utility to parse bower and npm packages used in a project and generate an attribution file to include in your product
MIT License
38 stars 23 forks source link

feature request: allow multiple project folders as input #6

Closed Kyle-Falconer closed 6 years ago

Kyle-Falconer commented 6 years ago

Currently, this program accepts two command-line arguments, one for the output directory (where the attribution text will be saved), and one for the input directory (the path to the Node.js project). It would be very useful to accept a variable number of input directories.

Each of the input directories passed in with the -b argument would processed, and duplicate entries (dependencies with same name and version number) would be combined to produce a smaller attribution text and prevent having to manually combine multiple attribution texts if the program had been run separately on the various Node.js projects.

Example usage:

cd pathToYourMainProject
generate-attribution -b pathToYourMainProject pathToYourFirstProjectDependency pathToYourSecondProjectDependency
git add ./oss-attribution
git commit -m 'adding open source attribution output from oss-attribution-generator'
zumwald commented 6 years ago

merged

Kyle-Falconer commented 6 years ago

Thanks for merging in this change, @zumwald.

Do you mind also publishing this revision to npm?

zumwald commented 6 years ago

1.4.0 is published now :)

absolutehype commented 4 years ago

Does this appear to work for everyone? I'm getting unable to locate package.json