Giter VIP home page Giter VIP logo

node-realurl's Introduction

Realurl Build Status

A simple command-line/module to convert short url's to the original url.

Getting Started

Install the module with: npm install realurl -g

I would recommend installing it globally so you can use it from the command line.

From the command line

$ realurl http://goo.gl/BGV9x

Retrieving the real url for: http://goo.gl/BGV9x

Real URL location:
https://github.com/manuelvanrijn/node-realurl

Result has been copied to your clipboard

Within your NodeJS project

var realurl = require('realurl');
realurl.get('http://goo.gl/BGV9x', function(error, result) {
   // error = null;
   // result = "http://github.com/manuelvanrijn/node-realurl";
});

realurl.get('http://this-is-not-a-real-url.com/at-all', 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;
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

  • 2013/03/19 - v0.1.3 - Async support by @lukekarrys.
  • 2012/10/08 - v0.1.2 - Added copy to clipboard support.
  • 2012/10/03 - v0.1.1 - Fixed a bug regarding line endings...
  • 2012/10/02 - v0.1.0 - Initial release.

License

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

githalytics.com alpha

node-realurl's People

Contributors

lukekarrys avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.