{"id":18821397,"url":"https://github.com/borderless/parse-authorization","last_synced_at":"2025-04-14T00:32:38.575Z","repository":{"id":46470212,"uuid":"272096459","full_name":"borderless/parse-authorization","owner":"borderless","description":"Parse the HTTP authorization header","archived":false,"fork":false,"pushed_at":"2023-12-12T06:35:25.000Z","size":719,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T10:22:11.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/borderless.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":"2020-06-13T22:37:09.000Z","updated_at":"2021-10-10T02:53:55.000Z","dependencies_parsed_at":"2022-08-20T09:01:09.601Z","dependency_job_id":null,"html_url":"https://github.com/borderless/parse-authorization","commit_stats":null,"previous_names":["borderlesslabs/parse-authorization"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Fparse-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Fparse-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Fparse-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Fparse-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borderless","download_url":"https://codeload.github.com/borderless/parse-authorization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223612915,"owners_count":17173632,"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-11-08T00:40:31.488Z","updated_at":"2024-11-08T00:40:32.247Z","avatar_url":"https://github.com/borderless.png","language":"TypeScript","readme":"# Parse Authorization\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\n\u003e Parse the HTTP authorization header.\n\n## Installation\n\n```sh\nnpm install @borderless/parse-authorization --save\n```\n\n## Usage\n\n```js\nimport { basic, bearer } from \"@borderless/parse-authorization\";\n\nexpect(bearer(\"Bearer 123\")).toEqual(\"123\");\nexpect(basic(\"Basic dGVzdDoxMjPCow==\")).toEqual([\"test\", \"123£\"]);\n```\n\n## TypeScript\n\nThis project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/@borderless/parse-authorization.svg?style=flat\n[npm-url]: https://npmjs.org/package/@borderless/parse-authorization\n[downloads-image]: https://img.shields.io/npm/dm/@borderless/parse-authorization.svg?style=flat\n[downloads-url]: https://npmjs.org/package/@borderless/parse-authorization\n[travis-image]: https://img.shields.io/travis/BorderlessLabs/parse-authorization.svg?style=flat\n[travis-url]: https://travis-ci.org/BorderlessLabs/parse-authorization\n[coveralls-image]: https://img.shields.io/coveralls/BorderlessLabs/parse-authorization.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/BorderlessLabs/parse-authorization?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Fparse-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborderless%2Fparse-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Fparse-authorization/lists"}