Project

unlicense

0.01
No release in over 3 years
Low commit activity in last 3 years
Unlicense Command-Line Interface (CLI)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 13
>= 3.9
>= 0.9
 Project Readme

Unlicense Command-Line Interface (CLI)

Project license Ruby compatibility RubyGems gem

A simple unlicense script that prints out the text of the Unlicense template.

Usage

Features

Prerequisites

Installation

The tool can be installed quickly and easily on any computer that has Ruby available:

$ gem install unlicense

After installation, test running the tool as follows:

$ unlicense

In case the command wasn't found after installation, you likely need to configure your PATH environment variable to include your RubyGems program path.

Reference (CLI)

Displaying the Unlicense template

$ unlicense
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <https://unlicense.org/>

Writing the Unlicense template to a file

$ unlicense > UNLICENSE

Measuring the byte size of the Unlicense template

$ unlicense | wc -c
1212

Computing the MD5 hash of the template

$ unlicense | openssl dgst -md5
f4c62131f879a8445e16a7f265aea635

Computing the SHA-1 hash of the template

$ unlicense | openssl dgst -sha1
5c88b302ec9f925c61e48a1ed9f02a9dbe0a6107

Computing the SHA-256 hash of the template

$ unlicense | openssl dgst -sha256
b5065838cbac452dfc855ba6e6e031481ad2c68406f70d21ead9321374653e6c

Computing the SHA-512 hash of the template

$ unlicense | openssl dgst -sha512
1bb7ac541515a5950edd07c9f743e3e60ff7c6dabde874c93b452de9cf8d5e7e3a216f318553ab16a234e79d29d319d6c1da37aa63ff4f09860614ec28a1f0b8