Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/btwiuse/mit
MIT{,-0} license generator
https://github.com/btwiuse/mit
mit mit-0 mit-license
Last synced: 13 days ago
JSON representation
MIT{,-0} license generator
- Host: GitHub
- URL: https://github.com/btwiuse/mit
- Owner: btwiuse
- License: mit
- Created: 2022-03-09T15:55:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T17:07:18.000Z (over 1 year ago)
- Last Synced: 2024-10-31T12:00:06.857Z (20 days ago)
- Topics: mit, mit-0, mit-license
- Language: Rust
- Homepage: https://crates.io/crates/mit
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mit
===[![crates.io](https://img.shields.io/crates/v/mit.svg)](https://crates.io/crates/mit)
[![Documentation](https://docs.rs/mit/badge.svg)](https://docs.rs/mit)
[![Build Status](https://travis-ci.org/btwiuse/mit.svg?branch=master)](https://travis-ci.org/btwiuse/mit)mit is an MIT{,-0} license generator
```
$ mit --help
generate MIT{,-0} licenseUsage: mit [OPTIONS] --author
Options:
-0, --zero Use MIT-0 variant
-y, --year Set year [optional]
-a, --author Set author name
-h, --help Print help
-V, --version Print version
```## Install
```
$ cargo install mit
```## Usage
Print license content
```
$ mit --author btwiuse
MIT LicenseCopyright (c) btwiuse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```Use [MIT-0](https://github.com/aws/mit-0) variant
```
$ mit -0 --author btwiuse
MIT No AttributionCopyright (c) btwiuse
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```Save to LICENSE file
```
$ mit --author btwiuse > LICENSE
```