{"id":15854171,"url":"https://github.com/afeiship/next-header-normalize","last_synced_at":"2025-04-01T18:50:45.975Z","repository":{"id":57122690,"uuid":"100082315","full_name":"afeiship/next-header-normalize","owner":"afeiship","description":"Normalize http header.","archived":false,"fork":false,"pushed_at":"2023-04-19T01:22:33.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T12:29:05.934Z","etag":null,"topics":["compact","content-type","header","http","lowercase","next","normalize"],"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-12T01:53:13.000Z","updated_at":"2023-04-19T01:21:08.000Z","dependencies_parsed_at":"2024-10-05T19:41:08.432Z","dependency_job_id":"6645a318-6b02-45f5-b4d3-dc862f4397f6","html_url":"https://github.com/afeiship/next-header-normalize","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-header-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-header-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-header-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-header-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-header-normalize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246695933,"owners_count":20819365,"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":["compact","content-type","header","http","lowercase","next","normalize"],"created_at":"2024-10-05T19:41:01.785Z","updated_at":"2025-04-01T18:50:45.944Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-header-normalize\n\u003e Normalize http header.\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-header-normalize\n```\n\n## usage\n```js\nimport '@jswork/next-header-normalize';\n\nconst header = {\n  'AcceptLanguage': 'zh-CN',\n  'contentLength': 521,\n  'X-Powered-By': null,\n  'Content-Type': 'application/json; charset=utf-8',\n  'cache-control': 'public, max-age=31536000',\n  'authorization': 'Bearer xxx.my-token+'\n};\n\nconst result = nx.headerNormalize(header, { lowerCase: true, compact: true });\n\n/*\n{\n  'accept-language': 'zh-CN',\n  'content-length': 521,\n  'content-type': 'application/json; charset=utf-8',\n  'cache-control': 'public, max-age=31536000',\n  'authorization': 'Bearer xxx.my-token+'\n}\n*/\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-header-normalize/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-header-normalize\n[version-url]: https://npmjs.org/package/@jswork/next-header-normalize\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-header-normalize\n[license-url]: https://github.com/afeiship/next-header-normalize/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-header-normalize\n[size-url]: https://github.com/afeiship/next-header-normalize/blob/master/dist/next-header-normalize.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-header-normalize\n[download-url]: https://www.npmjs.com/package/@jswork/next-header-normalize","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-header-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-header-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-header-normalize/lists"}