A simple command line tool to generate license and prepend license notices to the project files.
npx license-maker-cli <options>
Options
--program-description
One line to give the program's name and a brief idea of what it does.
Default value is empty
--author
Author of the program. This value is used in the license notice.
Default value is os username.
--year
Year of copyright. Default value is current year
--dir
The program directory to add license notices.
Default value is current directory
--license
The license type to apply. This defaulted to AGPL and can not change at the moment.
--exclude
A pattern to exclude files
--skip-license-generation
Skips license generation step
--skip-notice-generation
Skips license notice generation step
- Lated version of node which supports ES modules
- Tested on
node
versionv13.5.0
All files except the ones listed below will be ignored. We are working hard to support more file types. Feel free to contribute.
- Java
- Ruby
- Javascript
- html
- rhtml
- erb
- rxml
- rabl
- sh
- Clone the repository
- Run
npm link
from the repository - Run
license-maker-cli
with the required options
- Add more license notices
- Add more licenses