Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cagataycali/url-shortener

Shitty url shortener, emoji powered. 🌍✌🏼
https://github.com/cagataycali/url-shortener

Last synced: 3 months ago
JSON representation

Shitty url shortener, emoji powered. 🌍✌🏼

Awesome Lists containing this project

README

        

### Shitty url shortener, emoji powered.

* [🌍✌🏼.ws](http://🌍✌🏼.ws) (*I did not renew the domain name again because it was expensive.*)
* [👎👍.ws](http://👎👍.ws/) (*I did not renew the domain name again because it was expensive.*)
* [coool.ws](http://coool.ws/) (*I did not renew the domain name again because it was expensive.*)
* [shortener.cagatay.pro](https://shortener.cagatay.pro)

![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))
```