{"_id":"goo.gl","_rev":"2893012","name":"goo.gl","description":"A url shortener and expander powered by Google's URL shortening service","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"time":{"modified":"2022-11-28T08:51:01.000Z","created":"2011-07-07T04:21:18.380Z","0.1.4":"2015-07-30T18:13:31.723Z","0.1.3":"2015-03-09T21:28:01.498Z","0.1.2":"2014-08-09T18:38:20.927Z","0.0.2":"2011-07-08T19:34:07.358Z","0.0.1":"2011-07-07T04:21:18.380Z"},"users":{},"author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"versions":{"0.1.4":{"author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"name":"goo.gl","description":"A url shortener and expander powered by Google's URL shortening service","version":"0.1.4","homepage":"https://github.com/kaimallea/node-googl","keywords":["google","googl","goo.gl","url","urls","short","shorten","shortener","expander"],"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"engines":{"node":">= v0.10.20"},"dependencies":{"request":"~2.40.0","commander":"~2.2.0","q":"~1.0.1"},"main":"lib/googl.js","bin":{"goo.gl":"./cli.js"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.18.2","chai":"~1.9.1","chai-as-promised":"~4.1.1"},"gitHead":"28e34abf9425ca808ad16cdbf5480864db6b66c8","bugs":{"url":"https://github.com/kaimallea/node-googl/issues"},"_id":"goo.gl@0.1.4","_shasum":"f47cc10a3186789130bcd91d2db28653da457d34","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"f47cc10a3186789130bcd91d2db28653da457d34","size":3719,"noattachment":false,"key":"/goo.gl/-/goo.gl-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/goo.gl/download/goo.gl-0.1.4.tgz"},"directories":{},"publish_time":1438280011723,"_hasShrinkwrap":false,"deprecated":"Google discontinued goo.gl on March 30, 2019","_cnpm_publish_time":1438280011723,"_cnpmcore_publish_time":"2021-12-17T14:42:59.721Z"},"0.1.3":{"author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"name":"goo.gl","description":"A url shortener and expander powered by Google's URL shortening service","version":"0.1.3","homepage":"https://github.com/kaimallea/node-googl","keywords":["google","googl","goo.gl","url","urls","short","shorten","shortener","expander"],"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"engines":{"node":">= v0.10.20"},"dependencies":{"request":"~2.40.0","commander":"~2.2.0","q":"~1.0.1"},"main":"lib/googl.js","bin":{"goo.gl":"./cli.js"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.18.2","chai":"~1.9.1","chai-as-promised":"~4.1.1"},"gitHead":"608b68aba06993fc6b5a7be8ed445a878e39484c","bugs":{"url":"https://github.com/kaimallea/node-googl/issues"},"_id":"goo.gl@0.1.3","_shasum":"cb8596036b9363cd35bbc1a28d2a73dc7cf9bdb3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"cb8596036b9363cd35bbc1a28d2a73dc7cf9bdb3","size":3523,"noattachment":false,"key":"/goo.gl/-/goo.gl-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/goo.gl/download/goo.gl-0.1.3.tgz"},"directories":{},"publish_time":1425936481498,"_hasShrinkwrap":false,"deprecated":"Google discontinued goo.gl on March 30, 2019","_cnpm_publish_time":1425936481498,"_cnpmcore_publish_time":"2021-12-17T14:42:59.957Z"},"0.1.2":{"author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"name":"goo.gl","description":"A url shortener and expander powered by Google's URL shortening service","version":"0.1.2","homepage":"https://github.com/kaimallea/node-googl","keywords":["google","googl","goo.gl","url","urls","short","shorten","shortener","expander"],"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"engines":{"node":">= v0.10.20"},"dependencies":{"request":"~2.40.0","commander":"~2.2.0","q":"~1.0.1"},"main":"lib/googl.js","bin":{"goo.gl":"./cli.js"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.18.2","chai":"~1.9.1","chai-as-promised":"~4.1.1"},"gitHead":"dd94bf139e8e0b360540261a50e65d8547d55738","bugs":{"url":"https://github.com/kaimallea/node-googl/issues"},"_id":"goo.gl@0.1.2","_shasum":"8a9683ca0f6f8c56144dc026870e025b3c8eec1a","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"8a9683ca0f6f8c56144dc026870e025b3c8eec1a","size":3247,"noattachment":false,"key":"/goo.gl/-/goo.gl-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/goo.gl/download/goo.gl-0.1.2.tgz"},"directories":{},"publish_time":1407609500927,"_hasShrinkwrap":false,"deprecated":"Google discontinued goo.gl on March 30, 2019","_cnpm_publish_time":1407609500927,"_cnpmcore_publish_time":"2021-12-17T14:43:00.163Z"},"0.0.2":{"author":{"name":"Kai Mallea","email":"kmallea@gmail.com","url":"http://www.mallea.net/"},"name":"goo.gl","description":"A url shortener and expander powered by Google's URL shorting service","version":"0.0.2","homepage":"https://github.com/kaimallea/node-googl","keywords":["google","googl","goo.gl","urls","shortner","expander"],"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"engines":{"node":">= v0.4.9"},"dependencies":{},"devDependencies":{},"main":"lib/googl.js","bin":{"goo.gl":"./cli.js"},"_npmJsonOpts":{"file":"/Users/kmallea/.npm/goo.gl/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"goo.gl@0.0.2","_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"30537ef4e342f021c81fc368603407fef20c31f3","size":1640,"noattachment":false,"key":"/goo.gl/-/goo.gl-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/goo.gl/download/goo.gl-0.0.2.tgz"},"scripts":{},"directories":{},"publish_time":1310153647358,"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_hasShrinkwrap":false,"deprecated":"Google discontinued goo.gl on March 30, 2019","_cnpm_publish_time":1310153647358,"_cnpmcore_publish_time":"2021-12-17T14:43:00.388Z"},"0.0.1":{"author":{"name":"Kai Mallea","email":"kmallea@gmail.com","url":"http://www.mallea.net/"},"name":"goo.gl","description":"A url shortener and expander powered by Google's URL shorting service","version":"0.0.1","homepage":"https://github.com/kaimallea/node-googl","keywords":["googl","goo.gl","urls","url shortner","url expander"],"repository":{"type":"git","url":"git://github.com/kaimallea/node-googl.git"},"engines":{"node":"v0.5.0-pre"},"dependencies":{},"devDependencies":{},"main":"lib/googl.js","_npmJsonOpts":{"file":"/Users/kmallea/.npm/goo.gl/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"goo.gl@0.0.1","_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"3dd19909ca79670a9c15a6800f2c295d468cd069","size":1230,"noattachment":false,"key":"/goo.gl/-/goo.gl-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/goo.gl/download/goo.gl-0.0.1.tgz"},"scripts":{},"directories":{},"publish_time":1310012478380,"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_hasShrinkwrap":false,"deprecated":"Google discontinued goo.gl on March 30, 2019","_cnpm_publish_time":1310012478380,"_cnpmcore_publish_time":"2021-12-17T14:43:00.607Z"}},"readme":"[![Build Status](https://travis-ci.org/kaimallea/node-googl.svg?branch=master)](https://travis-ci.org/kaimallea/node-googl) [![NPM version](https://badge.fury.io/js/goo.gl.svg)](http://badge.fury.io/js/goo.gl)\n\n## Installation\n\n    npm install -g goo.gl\n\n## Command-line Usage\n\n```bash\n$ goo.gl www.google.com\nhttp://www.google.com -> http://goo.gl/fbsS\n\n$ goo.gl http://goo.gl/fbsS\nhttp://goo.gl/fbsS -> http://www.google.com/\n\n$ goo.gl www.google.com http://goo.gl/fbsS nba.com\nhttp://goo.gl/fbsS -> http://www.google.com/\nhttp://www.google.com -> http://goo.gl/fbsS\nhttp://nba.com -> http://goo.gl/d1T8\n\n$ goo.gl --key aBcDeFGhIjKLMnOPqRsT www.spotify.com\nhttp://www.spotify.com/ -> http://goo.gl/cJFAL\n```\n\nIt'll shorten and/or expand one or more URLs at a time.\n\n## Module Usage\n\nMost methods return promises.\n\n```javascript\nvar googl = require('goo.gl');\n\n// Set a developer key (_required by Google_; see http://goo.gl/4DvFk for more info.)\ngoogl.setKey('aBcDeFGhIjKLMnOPqRsT');\n\n// Get currently set developer key\ngoogl.getKey();\n\n// Shorten a long url and output the result\ngoogl.shorten('http://www.google.com/')\n    .then(function (shortUrl) {\n        console.log(shortUrl);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n// Expand a goo.gl url and output the result\ngoogl.expand('http://goo.gl/fbsS')\n    .then(function (longUrl) {\n        console.log(longUrl);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n// Expand a goo.gl url and pass userIp for capping purposes\ngoogl.expand('http://goo.gl/fbsS', { userIp: '127.0.0.1' })\n    .then(function (longUrl) {\n        console.log(longUrl);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n// Shorten a goo.gl url and pass quotaUser for capping purposes\n// See: https://developers.google.com/console/help/#cappingusage\ngoogl.shorten('www.spotify.com', { quotaUser: 'UserID' })\n    .then(function (shortUrl) {\n        console.log(shortUrl);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n// Look up a short URL's analytics\n// See: https://developers.google.com/url-shortener/v1/getting_started#url_analytics\ngoogl.analytics('http://goo.gl/fbsS', {projection: 'ANALYTICS_CLICKS'})\n    .then(function(result) {        \n        console.log(result);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\ngoogl.analytics('http://goo.gl/fbsS', {projection: 'FULL'})\n    .then(function(result) {        \n        console.log(result);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\ngoogl.analytics('http://goo.gl/fbsS', {projection: 'ANALYTICS_TOP_STRINGS'})\n    .then(function(result) {        \n        console.log(result);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n//default to projection=FULL\ngoogl.analytics('http://goo.gl/fbsS')\n    .then(function(result) {        \n        console.log(result);\n    })\n    .catch(function (err) {\n        console.error(err.message);\n    });\n\n```\n","_attachments":{},"homepage":"https://github.com/kaimallea/node-googl","bugs":{"url":"https://github.com/kaimallea/node-googl/issues"}}