juggler
v0.0.0
Published
Redis powered link shortener
Downloads
3
Readme
juggle
Juggle is a tiny library designed to shorten urls and store them within a Redis database. It can be used easily with any web framework.
Juggle, exposes 3 methods.
###shorten(url)
Takes a URL as an argument and returns a promise.
####resolve(key, url)
####reject(err)
###lookup(key) Takes a shortened url and searches for a url ####resolve(url) ####reject(err)
###save(key, url) Saves a url against a fixed short version