url-shortener
Version, currently 0.1.01 version
- 0.1.0latestApr 8, 2020
github.com/juanmougan/url-shortener
Uses external providers to shorten a given URL
1 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
url-shortener:
github: juanmougan/url-shortener
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
0.33.0- License
- MIT
- Author
- Juan Manuel Mougan
Dependencies
This version declares no dependencies.
README
url-shortener
Small library that uses external URL shorteners transparently.
Installation
-
Add the dependency to your
shard.yml:dependencies: url-shortener: github: juanmougan/url-shortener -
Run
shards install
Usage
require "url-shortener"
API
Without specifing a provider
The simplest use case is to only provide a URL, and rely on the default provider.
shortened = UrlShortener::Shortener
.from_url("www.uca.edu.ar")
.shorten
Specifing a provider
Alternatively, you can specify a provider to generate the URL.
shortened = UrlShortener::Shortener
.from_url("www.uca.edu.ar")
.with_provider(UrlShortener::TinyUrlProvider.new)
.shorten
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/juanmougan/url-shortener/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Juan Manuel Mougan - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Apr 8, 2020
- Commit
a931892620cd- Crystal
0.33.0- Indexed
- yes
Dependents
Repository
github.com/juanmougan/url-shortener
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 13, 2026
- Versions
- 1