node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

tall

tall

npm version CircleCI codecov.io

Promise-based, No-dependency URL unshortner (expander) module for Node.js

Install

Using npm

npm install --save tall

or with yarn

yarn add tall

Usage

ES6+ usage:

import { tall } from 'tall';
 
tall('http://www.loige.link/codemotion-rome-2017')
  .then(unshortenedUrl => console.log('Tall url', unshortenedUrl))
  .catch(err => console.error('AAAW 👻', err))
;

With Async await:

import { tall } from 'tall';
 
async someFunction() {
  try {
    const unshortenedUrl = await tall('http://www.loige.link/codemotion-rome-2017');
    console.log('Tall url', unshortenedUrl);
  } catch (err) {
    console.error('AAAW 👻', err);
  }
}
 
someFunction();

ES5:

var tall = require('tall').default;
tall('http://www.loige.link/codemotion-rome-2017')
  .then(function(unshortenedUrl) {
    console.log('Tall url', unshortenedUrl);
  })
  .catch(function(err) {
    console.error('AAAW 👻', err);
  })
;

Contributing

Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.

License

Licensed under MIT License. © Luciano Mammino.