co-googl

0.0.3 • Public • Published

goo.gl url shortener for compoundjs

Just a simple wrapper for https://github.com/kaimallea/node-googl for compoundjs

  1. Add to autoload.js

  2. From there you can access node-googl methods in controller

    // Shorten a long url and output the result compound.googl.shorten('http://www.google.com/', function (shortUrl) { console.log(shortUrl); });

    // Set a developer key (see http://goo.gl/4DvFk for more info.) compound.googl.setKey('aBcDeFGhIjKLMnOPqRsT');

    // Expand a goo.gl url and output the result compound.googl.expand('http://goo.gl/fbsS', function (longUrl) { console.log(shortUrl); });

Readme

Keywords

none

Package Sidebar

Install

npm i co-googl

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • mlabieniec