This is an small wrapper around the ethical shortener service https://is.gd. Migrated from: http://static.smalltalkhub.com/Offray/Shortener/index.html
Go to file
2023-03-05 19:52:32 -05:00
BaselineOfShortener Baseline template. 2023-03-05 19:52:32 -05:00
ConfigurationOfShortener Migrating configurations. 2022-12-26 17:09:20 -05:00
Shortener Minor: classification. 2022-12-27 17:35:02 -05:00
.project Migration from SmalltalkHub: .project created 2022-11-15 09:14:00 -05:00
.properties Migration from SmalltalkHub: .project created 2022-11-15 09:14:00 -05:00
LICENSE Initial commit 2021-04-01 17:44:32 -05:00
README.md Minor: indentation. 2022-12-26 17:26:36 -05:00

Shortener

This is an small wrapper around the ethical shortener service https://is.gd.

Installation

First install ExoRepo and then run this in a playground:

ExoRepo new
   repository: 'https://code.sustrato.red/Offray/Shortener';
   load.

Usage

  • To shorten a link do:

    Shortener shorten: 'https://pharo.org', which produces something like: `'https://is.gd/cQWvtm'

  • To enlarge a link do:

    Shortener enlarge: 'https://is.gd/cQWvtm', which, conversely, produces `'https://pharo.org'.

  • To shorten a link with an explicit alias do:

    Shortener shorten: 'https://pharo.org' as: 'pharo', which produces 'https://is.gd/pharo'.

    or will raise an error once a short url have been taken. For example, by running the previous example the alias 'pharo' has been taken for all future short urls and can not be used again (you will need to pick a new short url alias).

You can also enlarge a link from YouTube using:

YouTube enlargeLink: 'https://youtu.be/ggSyF1SVFr4'

which produces https://www.youtube.com/watch?v=ggSyF1SVFr4.

Migrated from: http://static.smalltalkhub.com/Offray/Shortener/index.html