{"_id":"shorturl","_rev":"13-18e7fb829d47a8bd7eda44afc4d4cfb6","name":"shorturl","description":"Simple URL shortener client library","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"shorturl","version":"0.0.1","description":"Simple URL shortener client library","keywords":["shorturl","shortlink","bit.ly","goo.gl","is.gd"],"author":{"name":"Jeff Waugh","email":"jdub@bethesignal.org"},"homepage":"https://github.com/jdub/node-shorturl","bugs":{"url":"https://github.com/jdub/node-shorturl/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jdub/node-shorturl/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jdub/node-shorturl.git"},"dependencies":{"request":">=1.2.0","tav":">=0.1.0"},"engines":["node >=0.2.0"],"main":"./index","bin":{"shorturl":"./shorturl"},"_id":"shorturl@0.0.1","_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.2.6","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"c13b3201a1aea126b3e81bde0c06c2bb07a69a0b","tarball":"https://registry.npmjs.org/shorturl/-/shorturl-0.0.1.tgz","integrity":"sha512-EyrJgop+2Uyiw2rAE/SjDmIaXVK/v/UiqaYftvKfGJYte9/J9kf4mmkqycaOUZoPvioe3L8aQMOlalwD74fNlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBafCpNpD71HxiohQtvysT4UU2zSZR272zVj7PhpLkcpAiEAmXQ/5OC3uUXVLUol/HFZrp9GXVXX+qGRPE6SFWkIq7o="}]}},"0.0.2":{"name":"shorturl","version":"0.0.2","description":"Simple URL shortener client library","keywords":["shorturl","shortlink","bit.ly","goo.gl","is.gd"],"author":{"name":"Jeff Waugh","email":"jdub@bethesignal.org"},"homepage":"https://github.com/jdub/node-shorturl","bugs":{"url":"https://github.com/jdub/node-shorturl/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jdub/node-shorturl/raw/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/jdub/node-shorturl.git"},"dependencies":{"request":">=1.2.0","tav":">=0.1.0"},"engines":["node >=0.2.0"],"main":"./index","bin":{"shorturl":"./shorturl"},"_id":"shorturl@0.0.2","_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.2.6","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"de0fbb88a11e98fcb23cf20e2bde58e6226501cc","tarball":"https://registry.npmjs.org/shorturl/-/shorturl-0.0.2.tgz","integrity":"sha512-L38t30vSunucUqElAYc8rTpGSU+S6+ZMXnUWyOYN1mK27CtzaGeAbNAynkIxHkXqODLrGMcTFxvyGtBzcg8h6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNDiNkRKbCAyxW56fJMnpM05WHTZ6OSNtrvhAhWagTbAIgT4ef19IRxpN47XuPU84r2WXwTwg8Z1zRLhgsPS+tBrg="}]}},"0.0.3":{"name":"shorturl","version":"0.0.3","description":"Simple URL shortener client library","keywords":["shorturl","shortlink","bit.ly","bitly","goo.gl","is.gd"],"author":{"name":"Jeff Waugh","email":"jdub@bethesignal.org"},"homepage":"https://github.com/jdub/node-shorturl","bugs":{"url":"https://github.com/jdub/node-shorturl/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jdub/node-shorturl/raw/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/jdub/node-shorturl.git"},"dependencies":{"request":">=2.9.153","optimist":">=0.3.1"},"engines":["node >=0.6.0"],"main":"./index","bin":{"shorturl":"./shorturl"},"_npmUser":{"name":"jdub","email":"jdub@bethesignal.org"},"_id":"shorturl@0.0.3","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"936f92e04aa774a6ead49364d76b4f746b5fb944","tarball":"https://registry.npmjs.org/shorturl/-/shorturl-0.0.3.tgz","integrity":"sha512-zMZ0O+4dZfF1QkeX4UZqAfTVg0TYhwO9JuDVxrspWcG+RSL5TK+PLhR6SUgkgcxcLICJmjkLc6r1rb4GL9HqIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzVig8kKiGv3X8wtuxzslM9xzNR1m2l0ksjT2xmRw7CAiEAtM1qW7iadIr5IVr5tlf3DRHLtcwXxNPAyKX9zXm4j2k="}]},"maintainers":[{"name":"jdub","email":"jdub@bethesignal.org"}],"directories":{}}},"maintainers":[{"name":"jdub","email":"jdub@bethesignal.org"}],"time":{"modified":"2022-06-26T19:05:08.215Z","created":"2011-02-04T14:20:28.235Z","0.0.1":"2011-02-04T14:20:28.867Z","0.0.2":"2011-02-05T09:20:32.900Z","0.0.3":"2012-03-30T11:19:02.548Z"},"author":{"name":"Jeff Waugh","email":"jdub@bethesignal.org"},"repository":{"type":"git","url":"git://github.com/jdub/node-shorturl.git"},"readme":"Simple URL shortener client library for node.js\n===============================================\n\n[shorturl](https://github.com/jdub/node-shorturl) is a simple, asynchronous client library for common URL shortener services. It currently supports: arseh.at, bit.ly, goo.gl, is.gd, v.gd and string substitution links (with %@). It includes a perky little script for shortening URLs on the command line, also named [shorturl](https://github.com/jdub/node-shorturl/blob/master/shorturl).\n\nIf you [need to go deeper](http://www.imdb.com/title/tt1375666/), try the more complete client libraries for individual services such as [node-bitly](https://github.com/tanepiper/node-bitly) or [node-googl](https://github.com/ukstv/node-googl).\n\n\n## Requirements\n\nYou can install node-shorturl and its dependencies with npm: `npm install shorturl`. Otherwise, manually install:\n\n- [node](http://nodejs.org/) 0.6+\n- [request](https://github.com/mikeal/request) 2.9+\n- [optimist](https://github.com/substack/node-optimist) 0.3.1\n\n## Examples\n\n\tvar shorturl = require('shorturl');\n\tshorturl('http://bethesignal.org/', function(result) {\n\t\tconsole.log(result);\n\t});\n\nBy default it will shorten URLs with is.gd, but you can choose an alternative service and pass parameters:\n\n\tshorturl('http://bethesignal.org/', 'bit.ly', {\n\t\tlogin: 'STATE YOUR NAME',\n\t\tapiKey: 'STATE YOUR IDENTIFICATION NUMBER'\n\t}, function(result) {\n\t\tconsole.log(result);\n\t});\n\nSimple services can be described using a string substitution link. Pass the entire link as the service name; '%@' will be replaced with your URL:\n\n\tvar arsehat = 'http://arseh.at/api.php?action=shorturl&format=simple&url=%@';\n\tshorturl('http://bethesignal.org/', arsehat, function(result) {\n\t\tconsole.log(result);\n\t});\n\n## Command line script\n\n\t$ shorturl\n\tUsage: shorturl [options] <longurl>\n\n\t$ shorturl --service=goo.gl --key=STATE_YOUR_ID_NUMBER http://bethesignal.org/\n\thttp://goo.gl/dgTLo\n\n\t$ ARSEHAT=\"http://arseh.at/api.php?action=shorturl&format=simple&url=%@\"\n\t$ shorturl --service=$ARSEHAT https://github.com/jdub/node-shorturl\n\thttp://arseh.at/3yd\n\nDisplay the built-in command line documentation with `shorten --help`.\n","readmeFilename":"","users":{"nmante":true,"damianof":true,"pirmax":true,"rocket0191":true,"mauricio-valencia":true}}