{"id":15503078,"url":"https://github.com/johno/get-query-param","last_synced_at":"2025-04-11T18:50:14.969Z","repository":{"id":27218688,"uuid":"30689780","full_name":"johno/get-query-param","owner":"johno","description":"Get a particular query param from a url","archived":false,"fork":false,"pushed_at":"2017-10-23T03:26:05.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T17:31:10.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johno.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-12T06:50:13.000Z","updated_at":"2019-11-26T07:07:53.000Z","dependencies_parsed_at":"2022-09-01T00:30:12.064Z","dependency_job_id":null,"html_url":"https://github.com/johno/get-query-param","commit_stats":null,"previous_names":["johnotander/get-query-param"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fget-query-param","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fget-query-param/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fget-query-param/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fget-query-param/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/get-query-param/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248463682,"owners_count":21108129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:12:07.763Z","updated_at":"2025-04-11T18:50:14.942Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-query-param [![Build Status](https://secure.travis-ci.org/johnotander/get-query-param.svg?branch=master)](https://travis-ci.org/johnotander/get-query-param) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nGet a particular query param from a url.\n\n## Installation\n\n```bash\nnpm install --save get-query-param\n```\n\n## Usage\n\n```javascript\nconst getQueryParam = require('get-query-param')\n\ngetQueryParam('a', 'https://foo.bar?a=hello')  // =\u003e 'hello'\ngetQueryParam('a', '/full/path?a=hello')       // =\u003e 'hello'\ngetQueryParam('b', 'https://foo.bar?a=hello')  // =\u003e undefined\ngetQueryParam('b', 'https://foo.bar')          // =\u003e undefined\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with \u003c3 by John Otander ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n\u003e This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fget-query-param","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fget-query-param","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fget-query-param/lists"}