Skip to content

About

This module let you short or expand URLs using the goo.gl API. You can use this module in the browser and even you could use browserify with it.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-googl

![Gitter](https://badges.gitter.im/Join Chat.svg)

This module let you short or expand URLs using the goo.gl API. You can use this module in the browser and even you could use browserify with it.

Install

$ npm install browser-googl

Usage

var browserGoogl = require('browser-googl');

browserGoogl.short("http://miguelmoraleda.com", function(err, response) {
    if(err) {
        throw err;
    }

    if(response) {
        console.log('kind: ', response.kind);
        console.log('id: ', response.id);
        console.log('longUrl: ', response.longUrl);
    }
});

test.expand("http://goo.gl/vJff0N", function(err, response) {
    if(err) {
        throw err;
    }
    if(response) {
        console.log('kind: ', response.kind);
        console.log('id: ', response.id);
        console.log('longUrl: ', response.longUrl);
        console.log('status: ', response.status);
    }
});

Wanna test before using?

git clone https://github.com/miguelmoraleda/youtube-iframe-player
cd browser-googl
npm install
npm install -g beefy
beefy test/index.js 9000

Dependency

Contributing

We welcome contributions of all kinds from anyone.

Release History

  • 1.0.0 Initial release

About

This module let you short or expand URLs using the goo.gl API. You can use this module in the browser and even you could use browserify with it.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages