[](./README.md)
[](./README.PT.md)
[](https://www.npmjs.com/package/tiny-shortener)
[](https://www.npmjs.com/package/tiny-shortener)
[](https://codeclimate.com/github/Fazendaaa/tiny-shortener/maintainability)
[](https://travis-ci.org/Fazendaaa/tiny-shortener)
[](https://github.com/Fazendaaa/tiny-shortener/blob/master/package.json)
[](https://codecov.io/gh/Fazendaaa/tiny-shortener)
> A new Tiny URL package for Node.js with promise/async and alias support.
## About
The idea behind this package is for a Open Source class taken at college. The professor wanted us to make a contribution to an OSS project.
Since the [TinyURL](https://www.npmjs.com/package/tinyurl) package is a great option after [Google](https://www.theverge.com/2018/3/31/17184164/google-alphabet-url-shortening-service-closed) has shut down it's shortener service. But the TinyURL has no Promise support, making it difficult to use with any new [ECMA](https://www.w3schools.com/js/js_versions.asp) standards. As there is a Pull Request(PR) opened supporting this in the project and still isn't merged, the idea behind __tiny-shortener__ is to make a new package that supports this and goes a step further supporting alias, letting the user personalize the shortened URL.
obs: in case that that the alias isn't available the request still works but falls back to an default shortened link.
## Installing
### Requirements
Since this package uses only [Node](https://nodejs.org/) packages as support, Node will be needed as [npm](https://www.npmjs.com/) installed.
### npm
```bash
npm install tiny-shortener --save
```
## Using it
### tiny(url, [alias])
* url