# basic-auth-parser

> Parse Basic Auth `Authorization` HTTP headers

Latest version **0.0.2-1** (published 2021-10-21) · 0 weekly downloads

## Install

```sh
npm install basic-auth-parser
pnpm add basic-auth-parser
yarn add basic-auth-parser
bun add basic-auth-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2-1 |
| Published | 2021-10-21 |
| First published | 2012-06-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Maciej Małecki |
| Maintainers | mmalecki |

## Links

- npm: https://www.npmjs.com/package/basic-auth-parser
- Repository: https://github.com/mmalecki/basic-auth-parser
- Homepage: https://github.com/mmalecki/basic-auth-parser#readme
- Issues: https://github.com/mmalecki/basic-auth-parser/issues
- npm.io page: https://npm.io/package/basic-auth-parser

## Recent versions

- 0.0.2-1 (latest) — 2021-10-21
- 0.0.2 — 2012-10-09
- 0.0.1 — 2012-07-23
- 0.0.0 — 2012-06-05

## README

# basic-auth-parser [![Build Status](https://secure.travis-ci.org/mmalecki/basic-auth-parser.png)](http://travis-ci.org/mmalecki/basic-auth-parser)
`basic-auth-parser` parses Basic Auth `Authorization` HTTP headers.

## Installation

    npm install basic-auth-parser

## Usage
```js
var basicAuthParser = require('./');
console.dir(basicAuthParser('Basic YWRtaW46cGFzc3dvcmQ='));
```

Output:
```
{ scheme: 'Basic', username: 'admin', password: 'password' }
```

---
_Source: https://npm.io/package/basic-auth-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
