{"id":15835229,"url":"https://github.com/afeiship/next-param","last_synced_at":"2025-04-01T12:29:50.089Z","repository":{"id":57122763,"uuid":"100034579","full_name":"afeiship/next-param","owner":"afeiship","description":"Parse and stringify URL query strings for next.","archived":false,"fork":false,"pushed_at":"2023-05-24T04:40:43.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:08:41.266Z","etag":null,"topics":["hash","next","param","params","qs","query","query-string"],"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":"2017-08-11T13:28:41.000Z","updated_at":"2022-03-06T08:21:59.000Z","dependencies_parsed_at":"2024-06-21T13:10:05.207Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-param","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"be4b96ac1a25a604b102480151dbea1734839513"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-param","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-param/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-param/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-param/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-param/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246639184,"owners_count":20809959,"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":["hash","next","param","params","qs","query","query-string"],"created_at":"2024-10-05T14:21:32.471Z","updated_at":"2025-04-01T12:29:50.072Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-param\n\u003e Parse and stringify URL query strings for next.\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-param\n```\n\n## apis\n| name    | type   | description    |\n|---------|--------|----------------|\n| hash    | object | 传入的参数列表 |\n| url     | string | URL            |\n| options | object | 其它选项       |\n\n## options\n| name      | type     | description                                                          |\n|-----------|----------|----------------------------------------------------------------------|\n| separator | string   | 当参数值为 `array` 的时候， `join` 的连接字符                        |\n| encode    | function | `encodeURI` 或者 `encodeURIComponent` ，或者自定义                   |\n| isEmpty   | function | 过渡掉不需要的 `value` ，可以用这个函数；默认过滤掉 `null/undefined` |\n| transform | function | 对每一组 `key/value` 进行处理，最终返回需要用 `\u0026` 拼接的字符串       |\n\n## encode\n- uri: 用 `encodeURIComponent` 对 value 进行 1次 `encode` 处理\n- uri2: 用 `encodeURIComponent` 对 value 进行 2次 `encode` 处理\n- base64: 对 value 用 `js-base64` 进行 `encode`\n\n## usage\n```js\nimport '@jswork/next-param';\n\nnx.param({ var1: 123, var2: 'str', ids: [1,2,3] });\n// var1=123\u0026var2=str\u0026ids=1%2C2%2C3\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-param/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-param\n[version-url]: https://npmjs.org/package/@jswork/next-param\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-param\n[license-url]: https://github.com/afeiship/next-param/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-param\n[size-url]: https://github.com/afeiship/next-param/blob/master/dist/next-param.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-param\n[download-url]: https://www.npmjs.com/package/@jswork/next-param\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-param","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-param","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-param/lists"}