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

https://github.com/nitin42/url-amplifier

A small library that expands a URL that has been shortened by a service.
https://github.com/nitin42/url-amplifier

Last synced: 3 months ago
JSON representation

A small library that expands a URL that has been shortened by a service.

Awesome Lists containing this project

README

        

## url-amplifier
[![Build Status](https://travis-ci.org/nitin42/url-amplifier.svg?branch=master)](https://travis-ci.org/nitin42/url-amplifier)
![Img](https://img.shields.io/badge/dependencies-up--to--date-green.svg)
![Img2](https://img.shields.io/badge/npm-2.15.9-blue.svg)

A small library that expands a URL that has been shortened by a service such as [bit.ly](bit.ly) and follows only one redirect.

### Installation

```
npm install url-amplifier

```

### Usage

```javascript
var amp = require('url-amplifier');

setTimeout(function(){
amp('https://goo.gl/ihmH9Y'); // Output: nitintulswani.com
}, 1000);

```

### Tests

```
npm test
```

### Contributing

Add unit tests for any new or changed functionality

### License

ISC