forked from electricdusk/rushlink
095348d614
Fixes #35
25 lines
684 B
Cheetah
25 lines
684 B
Cheetah
#RU URL SHORTENER
|
|
=================
|
|
|
|
Based on https://0x0.st/, this site allows you to easily shorten URLs using
|
|
the command line.
|
|
|
|
## USAGE
|
|
|
|
# Upload a file
|
|
curl -F'file=@yourfile.png' {{.RootURL}}
|
|
|
|
# Shorten a URL
|
|
curl -F'shorten=http://example.com/some/long/url' {{.RootURL}}
|
|
|
|
# The first line of the result will contain the shortened URL.
|
|
#
|
|
# In the other lines, you will find other information, including
|
|
# information on how to delete the shortened object.
|
|
|
|
# Upload output from another process
|
|
figlet Rushlink | curl -F'file=@-' {{.RootURL}}
|
|
|
|
# To upload a file and only extract the shortened URL (i.e. throw away the rest)
|
|
curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1
|