{"id":15854226,"url":"https://github.com/afeiship/next-url-operator","last_synced_at":"2026-04-29T17:35:07.187Z","repository":{"id":57122901,"uuid":"362289087","full_name":"afeiship/next-url-operator","owner":"afeiship","description":"Operator for url.","archived":false,"fork":false,"pushed_at":"2023-06-30T03:12:30.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T22:09:58.281Z","etag":null,"topics":["browser","hash","hashlize","next","operator","params","query","querystring","url","wip"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-28T00:23:11.000Z","updated_at":"2021-12-23T15:28:01.000Z","dependencies_parsed_at":"2024-10-05T19:41:19.417Z","dependency_job_id":"bf9514f7-62c5-4bbd-a513-b01a3d40daf7","html_url":"https://github.com/afeiship/next-url-operator","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"4f69585d38c2c111c68331769e7e91d2dbf08860"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-url-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-url-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-url-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-url-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-url-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-url-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-url-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32437068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T17:34:55.123Z","status":"ssl_error","status_checked_at":"2026-04-29T17:34:45.749Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["browser","hash","hashlize","next","operator","params","query","querystring","url","wip"],"created_at":"2024-10-05T19:41:11.793Z","updated_at":"2026-04-29T17:35:07.170Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-url-operator\n\u003e Operator for url.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-url-operator\n```\n\n## apis\n| api            | params                      | description                        |\n| -------------- | --------------------------- | ---------------------------------- |\n| get            | (name: string)              | Get param by name.                 |\n| gets           | -                           | Get all parmas.                    |\n| set            | (name:string, value:string) | Set param value                    |\n| sets           | (object:any)                | Update params value.               |\n| update(public) | (object):string             | Update params and get the new url. |\n| url(public)    | location.href               | The current url.                   |\n\n## usage\n```js\nimport NxUrlOperator from '@jswork/next-url-operator';\n\nconst op = new NxUrlOperator({ url: 'https://www.baidu.com?q=hello' });\nconst url = op.update({ q: 'world'});\n\n//https://www.baidu.com?q=world\n\n// static method\nNxUrlOperator.update({\n  q: 'hello'\n});\n\n// http://locahost?q=hello\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-url-operator/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-url-operator\n[version-url]: https://npmjs.org/package/@jswork/next-url-operator\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-url-operator\n[license-url]: https://github.com/afeiship/next-url-operator/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-url-operator\n[size-url]: https://github.com/afeiship/next-url-operator/blob/master/dist/next-url-operator.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-url-operator\n[download-url]: https://www.npmjs.com/package/@jswork/next-url-operator\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-url-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-url-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-url-operator/lists"}