Node url lengthener
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A simple node module to convert short url's to the original url.

NPM Build Status JavaScript Style Guide

Greenkeeper badge

Based off Manuel van Rijn's original realurl, I created this to remove some dependencies (copypaste) and any global bin files.

Getting Started

Install the module with: npm install simple-realurl --save

Within your NodeJS project

var realurl = require('simple-realurl');
realurl.get('', function(error, result) {
   // error = null;
   // result = "";

realurl.get('', function(error, result) {
   // error = Error('URL resulted in a 404');
   // result = null;

realurl.get('', function(error, result) {
   // error = Error('Please specify a short url');
   // result = null;

realurl.get('url', {agent: false}, function(error, result) {
  // bypasses Node's http/s client pool


Copyright (c) 2012 Manuel van Rijn - Licensed under the MIT license. Copyright (c) 2012-2016 Luke Karrys - Licensed under the MIT license.