1.1.3 • Published 9 years ago
isgd v1.1.3
Is.gd 
http://is.gd URL Shortener Node.js Module
Example Shorten:
First run npm install isgd to install the Is.gd package to your system.
var isgd = require('isgd');
isgd.shorten('http://google.com', function(res) {
console.log(res); // Returns a shorter version of http://google.com - http://is.gd/OwycZW
});
isgd.custom('http://google.com', 'MyGoogleShortcut', function(res) {
console.log(res); // If the custom URL of MyGoogleShortcut is actually available, it should return http://is.gd/MyGoogleShortcut
});
isgd.lookup('http://is.gd/OwycZW', function(res) {
console.log(res); // Returns a longer version of http://is.gd/OwycZW - http://google.com
});