{"_id":"urlparse-template","_rev":"17-cc822cbf7e9a991bbf2d41cdd2674a62","name":"urlparse-template","description":"Template-based URL-parsing","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"urlparse-template","version":"0.0.0","description":"Template-based URL-parsing","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":"","keywords":["url","template","parsing","url.parse"],"author":{"name":"Morten Siebuhr"},"license":"ISC","devDependencies":{"chai":"~1.6.0","mocha":"~1.10.0"},"dependencies":{"url-template":"~2.0.1"},"_id":"urlparse-template@0.0.0","dist":{"shasum":"59869eb9b5232f84f37941e05147a5331f690510","tarball":"https://registry.npmjs.org/urlparse-template/-/urlparse-template-0.0.0.tgz","integrity":"sha512-d/UKKHlIQQWaWm4GiC27vX4rNpASee8SqWNUaGiCYwPVhg+LcGcw5hdoE9L4NflY9Eg+bVvA02/JnjFid10OSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrP/gzxDkqBleY31KY45AGRqppV1x1EXNyD/ZnEWJXfAIgFv1ZsnIR2RYRiZ4r4fdngUWtaoiIFceOUrHl8ge5abo="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"msiebuhr","email":"sbhr@sbhr.dk"},"maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"}]},"0.0.1":{"name":"urlparse-template","version":"0.0.1","description":"Template-based URL-parsing","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":"","keywords":["url","template","parsing","url.parse"],"author":{"name":"Morten Siebuhr"},"license":"ISC","devDependencies":{"chai":"~1.6.0","mocha":"~1.10.0"},"dependencies":{"url-template":"~2.0.1"},"_id":"urlparse-template@0.0.1","dist":{"shasum":"87fdffe11e9fa77142b931612b1167647c1a25c9","tarball":"https://registry.npmjs.org/urlparse-template/-/urlparse-template-0.0.1.tgz","integrity":"sha512-UNHDlGh+V5otu0oQIt2vjPoYYq/yi8FNRhfRkggnCcXRlZ/8HiqgdGJRNSbL4GosMTlRaJrXwT+ZggfSxoaLgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9S6BWZ63RKf4xe3TMEVrF1yfjOb7Vs2SEQ5pz0iA8DQIhAL76whseDB8ifGsKyTnXHXwWDQTDEGu4g8LI2zqWAiM3"}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"msiebuhr","email":"sbhr@sbhr.dk"},"maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"}]},"0.0.2":{"name":"urlparse-template","version":"0.0.2","description":"Template-based URL-parsing","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/msiebuhr/node-urlparse-tempate.git"},"keywords":["url","template","parsing","url.parse"],"author":{"name":"Morten Siebuhr"},"license":"ISC","devDependencies":{"chai":"~1.6.0","mocha":"~1.10.0"},"dependencies":{"url-template":"~2.0.1"},"bugs":{"url":"https://github.com/msiebuhr/node-urlparse-tempate/issues"},"_id":"urlparse-template@0.0.2","dist":{"shasum":"d6aa316a1ce6a0e812d8eb494d4552c82620bb41","tarball":"https://registry.npmjs.org/urlparse-template/-/urlparse-template-0.0.2.tgz","integrity":"sha512-e/r8MP2EsNSGqonEcUBcKOeAzmKcAut7gtJXaiC9QYHJYaQ3Fx8lrwdnVsH+XZx2UqG04d9Ix74eDys2IqRAaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMxhZZZFCcxy7rKkhtQ7fUEbf8lOpkcX6jPBGZpWRmiAiEAkpZJtk96sVatnjUCaYjibDFPclmeQCSaAWPMTERqArs="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"msiebuhr","email":"sbhr@sbhr.dk"},"maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"},{"name":"papandreou","email":"andreas@one.com"}]},"0.1.0":{"name":"urlparse-template","version":"0.1.0","description":"Template-based URL-parsing","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/msiebuhr/node-urlparse-template.git"},"keywords":["url","template","parsing","url.parse"],"author":{"name":"Morten Siebuhr"},"license":"ISC","devDependencies":{"chai":"~1.6.0","mocha":"~1.10.0"},"dependencies":{"url-template":"~2.0.1"},"gitHead":"b22f41319fb2108f44111a2bc50c2cb820df663a","bugs":{"url":"https://github.com/msiebuhr/node-urlparse-template/issues"},"homepage":"https://github.com/msiebuhr/node-urlparse-template","_id":"urlparse-template@0.1.0","_shasum":"ecf8653179c541651e0b3e0a1ee6827605b40c48","_from":".","_npmVersion":"1.4.19","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"},{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"ecf8653179c541651e0b3e0a1ee6827605b40c48","tarball":"https://registry.npmjs.org/urlparse-template/-/urlparse-template-0.1.0.tgz","integrity":"sha512-xmY7J1fZBUIpp1KYhn4hmDJgjQu/0144q3iiZ+HRkr870cNKuYq6WxyyqtaLsO8mhRdYjC+6f75wA7nh2tszsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRkbwdX60f8VAIxYiWEvxlPsXF1OGVTFjOGktwsYCLAgIgLfB+MCG0gaB9szpxuU8lq366gmfkxZSwtqTdq8x7D04="}]}},"1.0.0":{"name":"urlparse-template","version":"1.0.0","description":"Template-based URL-parsing","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/msiebuhr/node-urlparse-template.git"},"keywords":["url","template","parsing","url.parse"],"author":{"name":"Morten Siebuhr"},"license":"ISC","devDependencies":{"mocha":"~1.10.0","unexpected":"^10.15.0"},"dependencies":{"url-template":"~2.0.1"},"gitHead":"20631286d29662998f5dd2e379e5ed80ff9d7f83","bugs":{"url":"https://github.com/msiebuhr/node-urlparse-template/issues"},"homepage":"https://github.com/msiebuhr/node-urlparse-template#readme","_id":"urlparse-template@1.0.0","_shasum":"886a9a83329f1099923ecdb6cfa0c6518e41b47a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"dist":{"shasum":"886a9a83329f1099923ecdb6cfa0c6518e41b47a","tarball":"https://registry.npmjs.org/urlparse-template/-/urlparse-template-1.0.0.tgz","integrity":"sha512-Yoeo2qkvTXNlw76a40L9t+a+QITrTXrsakTgSzWyZVdIiRihmOe7a6Zfd+ojLpaqQ9WYEkfDznhLar99c0GVeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP+trJXwiLrVtxGwp/F7k+xiMv/klsxv2BkvJpbrJBZwIhAOuj5bz6JY7lNEY2Rd/zHC0Zac4BaXAgdeJKed842B+x"}]},"maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"},{"name":"papandreou","email":"andreas@one.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/urlparse-template-1.0.0.tgz_1469202025867_0.2350143336225301"}}},"readme":"urlparse-template\n=================\n\n[url.parse()](http://nodejs.org/docs/latest/api/url.html) with templating\nsupport (via. Bram Stein's\n[url-template](https://github.com/bramstein/url-template)).\n\nBuilt for being able to give 'templated' URLs in configuration files, which you\nthen can fill out + get parsed on demand:\n\n    var utp = require('urlparse-template');\n\n\tvar template = utp('http://{username}:{password}@{username}.service.tld/');\n\n\t// Later\n\n\tvar urlparts = template({\n\t\tusername: 'foo',\n\t\tpassword: 'bar'\n\t});\n\t\n\t// Gives:\n\t// {\n\t//   protocol: 'http:',\n\t//   href: 'http://foo:bar@foo.service.tld/',\n\t//   auth: 'foo:bar',\n\t//   username: 'foo', // Parsed out from auth\n\t//   password: 'bar', // Parsed out from auth\n\t//   host: 'foo.service.tld',\n\t//   hostname: 'foo.service.tld',\n\t//   ...\n\t// }\n\nIt also works without the explicit template function:\n\n    var data = utp(templateString, fillData);\n\n## Details\n\nWe actually use a fork of `url.parse()` that doesn't call\n`decodeURIComponent()` in the parsed data. This allows us to parse the\nauth-section in a sane manner, even if users have `:` in their username.\n\n(Yes it does suck to have legacy-systems with lax validation...)\n\n## License\n\nISC\n","maintainers":[{"name":"msiebuhr","email":"sbhr@sbhr.dk"},{"name":"papandreou","email":"andreas@one.com"}],"time":{"modified":"2022-06-28T06:29:37.534Z","created":"2013-05-30T09:31:41.209Z","0.0.0":"2013-05-30T09:31:43.279Z","0.0.1":"2013-05-30T11:16:05.424Z","0.0.2":"2013-09-19T11:47:49.524Z","0.1.0":"2014-08-06T15:11:42.198Z","1.0.0":"2016-07-22T15:40:27.706Z"},"author":{"name":"Morten Siebuhr"},"repository":{"type":"git","url":"git+https://github.com/msiebuhr/node-urlparse-template.git"},"homepage":"https://github.com/msiebuhr/node-urlparse-template#readme","keywords":["url","template","parsing","url.parse"],"bugs":{"url":"https://github.com/msiebuhr/node-urlparse-template/issues"},"license":"ISC","readmeFilename":"README.md"}