{"_id":"@augmt/url-shortener-microservice","_rev":"8-6c5fd0667498fabd76915936205774cf","name":"@augmt/url-shortener-microservice","description":"URL Shortener Microservice","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.4":{"name":"@augmt/url-shortener-microservice","version":"0.2.4","description":"URL Shortener Microservice","license":"MIT","author":{"name":"Hector Garcia","email":"soseinhg3@gmail.com"},"main":"lib/app.js","repository":{"type":"git","url":"git+https://github.com/augmt/url-shortener-microservice.git"},"scripts":{"build":"babel src -d lib","publish":"npm run build","test":"tape -r dotenv/config -r babel-register test/test.js"},"dependencies":{"koa":"2.0.0-alpha.7","koa-router":"7.0.1","mongodb":"2.2.10","randomstring":"1.1.5"},"devDependencies":{"babel-cli":"^6.16.0","babel-plugin-transform-async-to-generator":"^6.16.0","babel-plugin-transform-es2015-modules-commonjs":"^6.16.0","babel-register":"^6.16.3","chai":"^3.5.0","dotenv":"^2.0.0","supertest":"^2.0.0","tape":"^4.6.1"},"gitHead":"232161c85b0c319af6ceebf1f8d7aeee191a99a4","bugs":{"url":"https://github.com/augmt/url-shortener-microservice/issues"},"homepage":"https://github.com/augmt/url-shortener-microservice#readme","_id":"@augmt/url-shortener-microservice@0.2.4","_shasum":"5206310e84de1cd602eea330bc09fa7cf4375357","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"augmt","email":"soseinhg3@gmail.com"},"dist":{"shasum":"5206310e84de1cd602eea330bc09fa7cf4375357","tarball":"https://registry.npmjs.org/@augmt/url-shortener-microservice/-/url-shortener-microservice-0.2.4.tgz","integrity":"sha512-Ey2jRSzDt77Vi/jAG08nya28ItF+G4FpNfLzVhSoRnCregAdm6MxNoRow8w0iKFntji28/0RNkHexgpxKnhKAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqFtu+VZgcfk2gORka/qxuWdV0KmQpxZIb73fFuAfChAiA1VFjNinm4LiQ4pv/SUemm5ljM2TlGnz3dUXxlSXMpgA=="}]},"maintainers":[{"name":"augmt","email":"soseinhg3@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/url-shortener-microservice-0.2.4.tgz_1475379937033_0.4204003403428942"}},"0.2.7":{"name":"@augmt/url-shortener-microservice","version":"0.2.7","description":"URL Shortener Microservice","license":"MIT","author":{"name":"Hector Garcia","email":"soseinhg3@gmail.com"},"main":"lib/app.js","repository":{"type":"git","url":"git+https://github.com/augmt/url-shortener-microservice.git"},"scripts":{"build":"babel src -d lib","prepublish":"npm run build","test":"tape -r dotenv/config -r babel-register test/test.js"},"dependencies":{"koa":"2.0.0-alpha.7","koa-router":"7.0.1","mongodb":"2.2.10","randomstring":"1.1.5"},"devDependencies":{"babel-cli":"^6.16.0","babel-plugin-transform-async-to-generator":"^6.16.0","babel-plugin-transform-es2015-modules-commonjs":"^6.16.0","babel-register":"^6.16.3","chai":"^3.5.0","dotenv":"^2.0.0","supertest":"^2.0.0","tape":"^4.6.1"},"gitHead":"36603ab8e34699c67cd913f8a4e21d603f08935c","bugs":{"url":"https://github.com/augmt/url-shortener-microservice/issues"},"homepage":"https://github.com/augmt/url-shortener-microservice#readme","_id":"@augmt/url-shortener-microservice@0.2.7","_shasum":"5abd2d16fff9958efa4ea701b916ac1348ea9be2","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"augmt","email":"soseinhg3@gmail.com"},"dist":{"shasum":"5abd2d16fff9958efa4ea701b916ac1348ea9be2","tarball":"https://registry.npmjs.org/@augmt/url-shortener-microservice/-/url-shortener-microservice-0.2.7.tgz","integrity":"sha512-yrrw81/HpQP8I9ihp/3fvTnvXYdQiqamvWmzS4BkW+F1U6asC9/RzHq6RJq9Y/9kxlWWtofqK7jjwBDFzLnshA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/rotggfwRsJ+Ys909On4hk8gWwf/RSygAc9oNuSnq3wIgB+EXPyQhz0otrYqQMDZV8EkUU2mlN8ygM1WhhQTzw8Y="}]},"maintainers":[{"name":"augmt","email":"soseinhg3@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/url-shortener-microservice-0.2.7.tgz_1476012370029_0.4059689485002309"}},"0.3.0":{"name":"@augmt/url-shortener-microservice","version":"0.3.0","description":"URL Shortener Microservice","license":"MIT","author":{"name":"Hector Garcia","email":"soseinhg3@gmail.com"},"files":["app.js","normalize-url.js","shorten-url.js"],"main":"app.js","repository":{"type":"git","url":"git+https://github.com/augmt/url-shortener-microservice.git"},"scripts":{"test":"tape -r dotenv/config \"test/**/*.js\""},"dependencies":{"koa":"2.3.0","koa-router":"7.2.1","monk":"6.0.3","normalize-url":"1.9.1","random-js":"1.0.8"},"devDependencies":{"dotenv":"^4.0.0","simple-mock":"^0.8.0","supertest":"^3.0.0","tape":"^4.8.0"},"gitHead":"95d3004c1cd18bb196d8c7f13cab1aee74c31bae","bugs":{"url":"https://github.com/augmt/url-shortener-microservice/issues"},"homepage":"https://github.com/augmt/url-shortener-microservice#readme","_id":"@augmt/url-shortener-microservice@0.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.0","_npmUser":{"name":"augmt","email":"soseinhg3@gmail.com"},"dist":{"integrity":"sha512-Fju8mP2CoySF9dcwi06BYsqOoqye7AcVb/Mr4JCDg12EgiHkIjYtPQFm0Vw0cH2MMJCR0ClWXT0HyISS2D0CVw==","shasum":"ded969c46aff74d654e1465f350e56a63731e287","tarball":"https://registry.npmjs.org/@augmt/url-shortener-microservice/-/url-shortener-microservice-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/CSm4a4Js02Z2hMU1VQT7tpAbatyI3fTEudI2uDy1nAIgQCqu+KKczBw8AHXR91R4oJbLcoowpsfXwVwEaObJTSk="}]},"maintainers":[{"name":"augmt","email":"soseinhg3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-shortener-microservice-0.3.0.tgz_1503877326841_0.2647863831371069"}}},"readme":"# URL Shortener Microservice\n\nShorten long URLs.\n\n## How it Works\n\nThis microservice uses [Monk][1] to store and retrieve objects,\n[normalize-url][2] and [random-js][3] to normalize URLs and generate unique\naliases, the [WHATWG URL API][4] to validate URLs, and [Koa][5] and\n[koa-router][6] to serve requests.\n\n[1]: https://github.com/Automattic/monk\n[2]: https://github.com/sindresorhus/normalize-url\n[3]: https://github.com/ckknight/random-js\n[4]: https://nodejs.org/api/url.html#url_the_whatwg_url_api\n[5]: http://koajs.com/\n[6]: https://github.com/alexmingoia/koa-router\n\n## How to Use\n\n`app.js` exports a Koa app. Koa apps have an [`app.listen()`][7] method that is\nidentical to Node's [http.Server.listen()][8].\n\nImport `app.js` and call `app.listen()` to start up the microservice.\n\n[7]: http://koajs.com/#app-listen-\n[8]: https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback\n\n### Environment Variables\n\n* `MONGO_URI` - your Mongo database's connection string\n\n## API Resources\n\n### POST /new/:url\n\nReturns a `ShortUrl` object.\n\n#### REQUEST\n\n__Sample__: `https://url-shortener-microservice.example.com/new/http://example.com`\n\n#### RESPONSE\n\n__Status__: 200 - `application-json`\n\n__Response__:\n\n    {  \n      \"originalurl\": \"http://example.com/\",\n      \"shorturl\": \"http://url-shortener-microservice.example.com/6uZ\"\n    }\n\n### GET /:alias\n\nRedirects the client to the corresponding long URL.\n\n#### REQUEST\n\n__Sample__: `https://url-shortener-microservice.example.com/6uZ`\n\n#### RESPONSE\n\n__Status__: 302\n\n__Location__: `http://example.com/`\n","maintainers":[{"name":"augmt","email":"soseinhg3@gmail.com"}],"time":{"modified":"2022-06-12T14:51:44.964Z","created":"2016-10-02T03:45:38.956Z","0.2.4":"2016-10-02T03:45:38.956Z","0.2.6":"2016-10-09T03:25:37.784Z","0.2.7":"2016-10-09T11:26:11.537Z","0.3.0":"2017-08-27T23:42:07.765Z"},"homepage":"https://github.com/augmt/url-shortener-microservice#readme","repository":{"type":"git","url":"git+https://github.com/augmt/url-shortener-microservice.git"},"author":{"name":"Hector Garcia","email":"soseinhg3@gmail.com"},"bugs":{"url":"https://github.com/augmt/url-shortener-microservice/issues"},"license":"MIT","readmeFilename":"README.md"}