Popularity
4.1
Growing
Activity
0.0
Stable
14
4
0
Programming language: Crystal
License: MIT License
Tags:
Third-party APIs
Latest version: v0.2.1
shorturl.cr alternatives and similar shards
Based on the "Third-party APIs" category.
Alternatively, view shorturl.cr alternatives based on common mentions on social networks and blogs.
-
discordcr
Minimalist Discord library for Crystal. (Still WIP, but usable) -
twitter-crystal
A library to access the Twitter API using Crystal -
TelegramBot
(deprecated) see https://github.com/protoncr/tourmaline instead -
crystal_slack
Parse Slack slash commands or send incoming web hooks from Crystal -
crystal-consul
Crystal client for Consul (http://www.consul.io/) -
mollie.cr
Mollie Payments API client for Crystal http://www.mollie.com -
open_exchange_rates
A library for Open Exchange Rates API -
aws-signer.cr
This library signs your HTTP requests using AWS v4 -
GDAX
๐ GDAX REST and WebSocket API wrapper to trade blockchain cryptocurrencies like bitcoin, Litecoin and Ethereum. -
web_finger
A WebFinger (https://tools.ietf.org/html/rfc7033) client for Crystal. -
soundcloud-crystal
A library to access the SoundCloud API using Crystal -
bugsnag.cr
bugsnag exception notifier written in crystal. Supports sidekiq.cr, kemal, HTTP::Server. -
host_meta
A Web Host Metadata (https://tools.ietf.org/html/rfc6415) client for Crystal. -
fantasy_football_nerd_api
Crystal library for Fantasy Football Nerd API -
crystal-connpass
:anchor: A Crystal wrapper for the Connpass API
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
Promo
www.influxdata.com
Do you think we are missing an alternative of shorturl.cr or a related project?
README
shorturl.cr 
A simple library to use URL shortening services. Inspired by Robby Russell's shorturl.
Installation
As a dependency in shards.yml
:
dependencies:
shorturl:
github: veelenga/shorturl.cr
branch: master
Usage
As easy as it could be:
require "shorturl"
# shorten
ShortURL.shorten "http://google.com" # => "http://tinyurl.com/2tx"
ShortURL.shorten "http://google.com", :tinyurl # => "http://tinyurl.com/2tx"
ShortURL.shorten "http://google.com", :isgd # => "http://is.gd/OwycZW"
# expand
ShortURL.expand "http://tinyurl.com/2tx" # => "http://google.com"
Binary
As an addition, shorturl
binary available for you:
$ crystal build bin/shorturl && ./shorturl -h
Usage: shorturl [arguments]
-u URL, --url=URL URL to be shortened
-s SERVICE, --service=SERVICE Shortening service
-V, --verbose Verbose output
-v, --version Version
-h, --help Prints this help
$ ./shorturl http://google.com
http://tinyurl.com/2tx
Available services
Here is a list of available shortening services in shorturl.cr:
Contributing
- Fork it
- Create your feature branch
- Implement your feature
- Run tests with
crystal spec
- Commit your changes
- Push to the branch
- Create a new Pull Request