license-maker-cli
v1.6.0
Published
Adds license notice to all the files in the program
Downloads
4
Readme
license-maker-cli
A simple command line tool to generate license and prepend license notices to the project files.
Usage
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
Requirements
- Lated version of node which supports ES modules
- Tested on
node
versionv13.5.0
Supported Licenses
Supported Files
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
Running locally
- Clone the repository
- Run
npm link
from the repository - Run
license-maker-cli
with the required options
Upcoming
- Add more license notices
- Add more licenses