Shortened URL extractor
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.npmignore
History.md
Makefile
Readme.md
index.js
package.json

Readme.md

unbitly

Shortened URL extractor

Installation

npm:

$ npm install unbitly

Usage

var extract = require('unbitly');

extract('http://fb.me', function(err, url, stack) {
  if (err) return console.error(err);

  // url: https://www.facebook.com/
  // stack: [ 'http://www.facebook.com/', 'https://www.facebook.com/' ]
  console.log(url, stack);
});

License

The MIT License

Copyright (c) 2013 Seiya Konno <nulltask@gmail.com>