{"_id":"@elifent/url-params","_rev":"7-69672f85d0773e5c70704091e9e8123c","time":{"3.0.1":"2019-02-01T05:42:22.728Z","created":"2019-02-01T05:43:03.611Z","3.0.2":"2019-02-01T05:43:03.991Z","modified":"2022-04-05T07:11:47.197Z","3.0.3":"2019-02-07T09:17:48.604Z"},"name":"@elifent/url-params","dist-tags":{"latest":"3.0.3"},"versions":{"3.0.2":{"name":"@elifent/url-params","version":"3.0.2","description":"Get params from url. A non-binding element","main":"url-params.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["polymer.js"],"author":{"name":"aneeshameed@elifent.tech"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/elifent/url-params.git"},"bugs":{"url":"https://github.com/elifent/url-params/issues"},"homepage":"https://github.com/elifent/url-params#readme","gitHead":"9ac6decc31da580ad5cedacbdfab7c5cfb1d9901","_id":"@elifent/url-params@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aneeshameed","email":"aneeshameed@elifent.tech"},"dist":{"integrity":"sha512-Sks8L2z3PRqiplEG0Tct3C4Yv42md6NpDMyeJBY49/X1lnBUx8na6CAnDTD9GxS2ypUrMmui10ni0Eh2nlq+Hg==","shasum":"abe6e72f92bed9643c7c749ee287c9d52c4e2cbc","tarball":"https://registry.npmjs.org/@elifent/url-params/-/url-params-3.0.2.tgz","fileCount":4,"unpackedSize":5832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcU9xoCRA9TVsSAnZWagAA9vEP/2rLtm8XLCUSZlF++Ou8\ni4+xk2pOoTOcCHkBoKgEslRhlFNIWta2TrVDPe284JjtPlnJ2HObuy412DH2\nJI4NgZGj5TDL91UrqMOxQSqumzcpD6cX8WWM3ZzG//j8sNuijrinGfkBYD6k\nNDvGB16V180wS7Dazz59v/WnlL/Ei98igmiLhavQ0iokjptRsPgbcTfG9weI\n/969buNcR8p9Sw+IsIUlwz0qtMHYkflD1VEmhMuSJohgKIsOZNaUK9yVL6FT\nmp5ylZprXx9AdZ9GBwal/VXTviwyZ9F5bIsQ5KGoAaLCAwpAlxqyxJqTymZH\nrU/nLR95MO/hgdoBRBdmZ7vhZQv2oNW+t3ILt10zVdDjLy4xlR8w28gS39PJ\nrq8n8T6ok+zgDuaYK73aB+JLyZhFT6Dql6luBVXj/ZwzITH5tUQAtT/JPgeI\nIxrPxeN+izU2Y2zw7Ac5Vq/Y2LLM7vON2+KK5cbSihZReM5CFn6qbaEiP3zF\nAXkZkaReh6hokqVv17AbfAlBL15Bb3ynQzd88gCPI61lF3J/z2BFuo4qv57U\nPMBwXp0rDJ85Gl3f4kamiWXqkdwTnnSVFkANT9CegAHiF6kqlXAmflVqA8n0\nXFLWjoyIHHm89e2UWiP1bumVlMfRcSsjNK7jrsZxR0wYo6mGoFKWriyj4PTW\nu7T0\r\n=eNL0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAGX5pmjXjpb/2U6psqd/oC0M+H1XL+uYSxdAB1TZK3AiEAiq0jvoqUhEnmzpkqfZYVvX2q2uzPy7HsQZx0JoHl6fg="}]},"maintainers":[{"name":"aneeshameed","email":"aneeshameed@elifent.tech"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-params_3.0.2_1548999783800_0.8857894324415108"},"_hasShrinkwrap":false},"3.0.3":{"name":"@elifent/url-params","version":"3.0.3","description":"Get params from url. A non-binding element","main":"url-params.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["polymer.js"],"author":{"name":"aneeshameed@elifent.tech"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/elifent/url-params.git"},"bugs":{"url":"https://github.com/elifent/url-params/issues"},"homepage":"https://github.com/elifent/url-params#readme","dependencies":{"@polymer/polymer":"^3.0.0"},"gitHead":"73ea30f0e060f7110d605ef73cb09652506e450d","_id":"@elifent/url-params@3.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"aneeshameed","email":"aneeshameed@elifent.tech"},"dist":{"integrity":"sha512-WMZHXTyHb60+RctLoDz88q1qd3xXY1KZjBrHMDjjaBvsE+jRJJ1xt8ulTUOhF6zCfynZjenKlE8mU2vs/jpq0A==","shasum":"e28a0591e02f27b292882d447c0285178d21c32c","tarball":"https://registry.npmjs.org/@elifent/url-params/-/url-params-3.0.3.tgz","fileCount":4,"unpackedSize":7976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW/e9CRA9TVsSAnZWagAAqbcP/AzdHTWj7N/Kfu7i3XU8\ngAu1T7L2ShmB9scd9tJlko4rFx391ILBNiEbs30CLSKEALv7Var62Oi4qoIM\nQ+chEii+BoR3uCsyqsfPdNt67LvOotDaDfnamKOawM8IbEtW/lvfWfaxjGju\n63v7Ivo/94mrV87lI4bon55zR+0uOMsuL5cMztMAbb4PT2pCKnfAr4eorfn5\nh3VzZ7AeWRgcAALSh4lToUDT+FClBN5mC/VKz5HPIO7hJfKwj7wo5l+x4Di4\nn1Fy4uMuGjGb4fdrMdtbdANCk03A407F8HnSGplebMj+aDhioRqenZmW6L4q\npe+1vh0cMP9H4ADu0KPRaVLBo1gXbOe1Cl04IxXx1rSxW//HNs1eC6Cbe/SS\niPOsg63fW4r4EUfTgnBS6Nm8Cvso1c+ssCRqJAdbFqLwbSPwGj4m6SG5G9/S\nCKm65DZ6nygA4KMoB/CBjDjt5XD0hyEd2xhXXnQmvLryPSv7Q7P9TnnW0WZf\nNmDyjp3OWPhYzLhww0draNrPn1MshO27n/7kNdVNRgKmeVRQaTfrjs/ySbYB\nhZmolFqYK5TKlGiQTa2DC6/hJZHmaGhmhnNpF+6gKoCKK/cR8qCxkT5HJXej\n0tLdal+QDSXMI5Uc78zzYfUcx7KP0aS4CSRENy7IKFRN9J4aHOfEUFQ85Xwb\nCr4r\r\n=+gB7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZPX6r3yhHuC/oF6kpBXgm2O+q7YfP2xKuvKwD0iy4sAIhAKJPUKFLe4HffMZazZPjYq5y1Gi1b2jrAiJlMK4yGDFV"}]},"maintainers":[{"name":"aneeshameed","email":"aneeshameed@elifent.tech"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-params_3.0.3_1549531068476_0.2978363940049309"},"_hasShrinkwrap":false}},"maintainers":[{"email":"aneeshameed@elifent.tech","name":"aneeshameed"}],"description":"Get params from url. A non-binding element","homepage":"https://github.com/elifent/url-params#readme","keywords":["polymer.js"],"repository":{"type":"git","url":"git+https://github.com/elifent/url-params.git"},"author":{"name":"aneeshameed@elifent.tech"},"bugs":{"url":"https://github.com/elifent/url-params/issues"},"license":"ISC","readme":"# <url-params>\r\n\r\nurl-params is a polymer element which is the best way to read params directly from url. If you employ app-route or app-location these are two way binded elements and soon as value changes it gets mutated to url, which effects in the desired performance of web app.\r\n\r\nurl-params is specifically build for multi page app approach, because in single page app everything is passed to inner page via parent routes.\r\n# Usage\r\n\r\n## Installation\r\n```\r\nnpm install @elifent/url-params\r\n```\r\n## In an html file\r\n\r\n```\r\n\r\n \r\n \r\n \r\n \r\n \r\n Value in data is {{params.data}}
\r\n Value in to is {{params.to}}
\r\n Value in parse is {{params.parse}}
\r\n \r\n\r\n```\r\n\r\n## In polymer 3 element\r\n\r\n```\r\nimport {PolymerElement, html} from '@polymer/polymer';\r\nimport '@elifent/url-params/url-params.js';\r\n\r\nclass SampleElement extends PolymerElement {\r\n static get template() {\r\n return html`\r\n \r\n Value in data is {{params.data}}
\r\n Value in to is {{params.to}}
\r\n Value in parse is {{params.parse}}
\r\n `;\r\n }\r\n}\r\ncustomElements.define('sample-element', SampleElement);\r\n```\r\n## Other methods\r\nAlternatively you can read all params from a GET request. To do it use pattern as ?\r\n```\r\nimport {PolymerElement, html} from '@polymer/polymer';\r\nimport '@elifent/url-params/url-params.js';\r\n\r\nclass SampleElement extends PolymerElement {\r\n static get template() {\r\n return html`\r\n \r\n Value in data is {{params.data}}
\r\n Value in to is {{params.to}}
\r\n Value in parse is {{params.parse}}
\r\n `;\r\n }\r\n}\r\ncustomElements.define('sample-element', SampleElement);\r\n```\r\n\r\nIn this case if your url is path/to/page?data=a&to=b&parse=c then you will be able to get params.data as a.\r\n\r\n## Contributing\r\n\r\nRunning demo locally\r\n\r\n### Installation\r\n\r\n```\r\n git clone https://github.com/elifent/url-params\r\n cd url-params\r\n npm install\r\n npm install -g polymer-cli\r\n```\r\n\r\n### Running the demo locally\r\n\r\n```\r\n polymer serve --npm\r\n open http://127.0.0.1:/demo/index.html?name=George&age=30&sex=male\r\n\r\n```\r\n\r\nFound issues? Let me know","readmeFilename":"README.md"}