browser-googl
v1.0.0
Published
This library let you short or expand URLs using goo.gl API. You can use this module in the browser.
Downloads
17
Maintainers
Readme
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
Contributing
We welcome contributions of all kinds from anyone.
Release History
- 1.0.0 Initial release