licensed
⚖ licensed is a simple, interactive command line interface to help you choose and quickly add a LICENSE
file to your project.
Setup
Make sure you have NodeJS (npm 5.2+) installed on your computer. Then, setup is as simple as:
$ npx licensed
If you've got an older version of node (npm version < 5.2) that doesn't yet have npx
, here's a more traditional setup:
$ npm i -g licensed
Usage
After installation, navigate to your project directory ie. the directory you want your LICENSE
file to be placed. Then:
Usage:
$ licensed
$ licensed <license-name>
$ licensed <license-name> <your-full-name>
$ licensed --help
$ licensed --version
Options:
--help Show this screen
--version Show version
Examples:
$ licensed mit "Mihir Chaturvedi"
$ licensed mit
Development
Run:
$ git clone https://github.com/plibither8/licensed.git
$ cd licensed
$ npm link
This will setup a symbolic link to the CLI. Any changes in source files will now be reflected when running the licensed
command.
To lint your code, run
$ npm run lint
...and to build your files to /lib
directory, run
$ npm run build
Available licenses to choose from (currently):
- Apache 2.0
- BSD-2-Clause
- BSD-3-Clause
- GNU General Public License
- ISC
- MIT
- Mozilla Public License 2.0
Contributions
- If you are aware of more licenses, help expand the list by suggesting or creating a pull request with the license text and name added to the
assets/licenses
, src/licenses.js
and other respective files. - Any other positive suggestions for this project are welcome :)
Acknowledgements