https://github.com/michimani/genlink
This is a command line tool that generates links to the specified URL in various formats.
https://github.com/michimani/genlink
Last synced: 3 months ago
JSON representation
This is a command line tool that generates links to the specified URL in various formats.
- Host: GitHub
- URL: https://github.com/michimani/genlink
- Owner: michimani
- License: mit
- Created: 2021-02-03T14:36:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-05T14:57:05.000Z (over 4 years ago)
- Last Synced: 2025-01-04T15:57:18.572Z (5 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
genlink
---This is a command line tool that generates the link to the specified URL in various formats.
## Features
This tool can generate a link to the specified URL in the following format.
- Markdown
- HTML a tag
- HTML a tag with `target="_blank" rel="noopener"` attributes
- QR code## Installation
```bash
$ brew install michimani/genlink/genlink
```## Usage
```
$ ./genlink -h_ _ _
__ _ ___ _ __ | (_)_ __ | | __
/ _' |/ _ \ '_ \| | | '_ \| |/ /
| (_| | __/ | | | | | | | | <
\__, |\___|_| |_|_|_|_| |_|_|\_\
|___/ Version: v*.*.*-*******Usage:
genlink [flags] [values]
Flags:
-u (required) URL
-t Type of link to output
md: Markdown (default)
html: HTML a tag
html-bl: HTML a tag with 'target="_blank"'
qr: QR code image
-o Absolute path to directory to output QR code
Use this flag in combination with '-t qr'
Default is current directoryAuthor:
michimani
```### Example
#### Generate link as Markdown format.
```
$ ./genlink -u https://github.com/michimani/genlink -t md
[GitHub - michimani/genlink: This is a command line tool that generates links to the specified URL in various formats.](https://github.com/michimani/genlink)
```#### Generate link as QR code.
```
$ ./genlink -u https://github.com/michimani/genlink -t qr -o /path/to/out/dir
QR code has been created.
/path/to/out/dir/8b448f6e8e9c09185f6f6ca8d143397b85586b8154cb9233cdc62cf2cecd90c6.png
```