{"id":19760122,"url":"https://github.com/videsk/params-parser","last_synced_at":"2025-02-28T02:45:24.734Z","repository":{"id":117346695,"uuid":"212738776","full_name":"videsk/params-parser","owner":"videsk","description":"Add query parameters to an URL dynamically by object, array o single parameter, specially for Rest API.","archived":false,"fork":false,"pushed_at":"2020-05-29T20:48:29.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-20T09:22:04.383Z","etag":null,"topics":["params","query","rest-api","videsk"],"latest_commit_sha":null,"homepage":"https://open.videsk.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/videsk.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-04T04:57:17.000Z","updated_at":"2020-07-15T20:04:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"acc8a391-22e3-4af2-97f5-e6faaf13b3bf","html_url":"https://github.com/videsk/params-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videsk%2Fparams-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videsk%2Fparams-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videsk%2Fparams-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videsk%2Fparams-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videsk","download_url":"https://codeload.github.com/videsk/params-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241090532,"owners_count":19907972,"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":["params","query","rest-api","videsk"],"created_at":"2024-11-12T03:35:35.859Z","updated_at":"2025-02-28T02:45:24.695Z","avatar_url":"https://github.com/videsk.png","language":"JavaScript","readme":"# Params Parser\n\nThis library allow to generate a url with params added by object, array or by units.\n\n## How to use\n\nFor start only need initialize class.\n\n```js\nconst paramParse = new ParamsParse();\n```\n\n## Add params by one\n\n```js\nparamParse.add()\n```\n\n## Add params by object\n\n```js\nparamParse.byObj({ name: 'John', number: 9236376288 });\n```\n\n## Add params by array\n\n```js\nparamParse.byArray('channels[$in]', ['5c82cb15582685351224cce3', '5c82cb25582685351224cce4'])\n```\n\n## Get the URL\n\nFor get the URL with parameters only need execute:\n\n```js\nparamParse.parse();\n\n// Output\n'?name=John\u0026number=9236376288\u0026channels[$in]=5c82cb15582685351224cce3\u0026channels[$in]=5c82cb25582685351224cce4';\n```\n\n## Copyrights\n\nThis library is totally open source with Apache 2.0 license, but was designed for Videsk™ products.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidesk%2Fparams-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidesk%2Fparams-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidesk%2Fparams-parser/lists"}