UNPKG

emoji-url-shortener

Version:
47 lines (31 loc) 921 B
### Shitty url shortener, emoji powered. * [🌍✌🏼.ws](http://🌍✌🏼.ws) * [👎👍.ws](http://👎👍.ws/) * [coool.ws](http://coool.ws/) ![url-shortener](public/readme.png) **Deploy your own shitty url shortener.** Shitty, works well in heroku environment. It requires NodeJS and MongoDB. [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/cagataycali/url-shortener) **Usage In Command Line Interface** *Install* ``` npm i -g emoji-url-shortener; ``` *Usage* ``` shorten https://github.com 👎👍 ``` **Usage In Programmatic API** *Install* ``` npm i -S emoji-url-shortener ``` *Usage* ```javascript const Shortener = require('emoji-url-shortener'); const shorten = new Shortener(); shorten.pick({url: 'https://github.com/', emoji: '👎👍'}) .then(response => console.log(response)) .catch(error => console.log(error)) ```