Generate a license for your project. All from the command line.
If you enjoy this project, check Frank Abgrall's readme generator
npm install -g licgen
Or
yarn add -g licgen
licgen [--type=mit]
If you have a license listed in your package.json
, it will choose that license for you. If you don't, it will prompt you to choose a license.
Alternatively, choose your own license with the type
argument.
Supported Licenses
- MIT
- GNU GPL v3
- Apache 2.0
- BSD 3-Clause
- Your favorite license via PR... 😀
To add a license, add the necessary information in list.json using the following format:
{
"list": [
{
"name": "Full name of the license",
"aliases": ["Other names for the license that a user might type"],
"txt": "The license itself. Newlines escaped with `\n` and any items to be filled-in enclosed by [brackets].",
"notice": "If the license recommends one, a notice which should be attached to the readme"
}
]
}
Copyright © 2019 Binyamin Green
This project uses the MIT License