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); });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1-1
    0

Package Sidebar

Install

npm i co-googl

Weekly Downloads

0

Version

0.0.3

License

none

Last publish

Collaborators

  • mlabieniec