Socket
Socket
Sign inDemoInstall

browser-googl

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browser-googl

This library let you short or expand URLs using goo.gl API. You can use this module in the browser.


Version published
Weekly downloads
1
Maintainers
1
Install size
36.6 kB
Created
Weekly downloads
 

Readme

Source

browser-googl

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

  • browser-request

Contributing

We welcome contributions of all kinds from anyone.

Release History

  • 1.0.0 Initial release

Keywords

FAQs

Last updated on 10 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc