Skip to content

Latest commit

Β 

History

History
47 lines (32 loc) Β· 1.15 KB

readme.md

File metadata and controls

47 lines (32 loc) Β· 1.15 KB

Shitty url shortener, emoji powered.

url-shortener

Deploy your own shitty url shortener.

Shitty, works well in heroku environment. It requires NodeJS and MongoDB.

Deploy

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

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))