node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

co-googl url shortener for compoundjs

Just a simple wrapper for 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('', function (shortUrl) { console.log(shortUrl); });

    // Set a developer key (see for more info.) compound.googl.setKey('aBcDeFGhIjKLMnOPqRsT');

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