# BasicCredentials

> Get user credentials from Basic Authentication method.

Latest version **0.0.15** (published 2016-10-01) · 0 weekly downloads

## Install

```sh
npm install BasicCredentials
pnpm add BasicCredentials
yarn add BasicCredentials
bun add BasicCredentials
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2016-10-01 |
| First published | 2016-09-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | hageok |
| Keywords | basic, credentials, username, password, authentication |

## Links

- npm: https://www.npmjs.com/package/BasicCredentials
- npm.io page: https://npm.io/package/BasicCredentials

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@oxyhq/services](https://npm.io/package/@oxyhq/services.md) — 2.3K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads

## Recent versions

- 0.0.15 (latest) — 2016-10-01
- 0.0.14 — 2016-10-01
- 0.0.13 — 2016-10-01
- 0.0.12 — 2016-10-01
- 0.0.11 — 2016-10-01
- 0.0.9 — 2016-09-10
- 0.0.8 — 2016-09-10
- 0.0.7 — 2016-09-10
- 0.0.6 — 2016-09-10
- 0.0.5 — 2016-09-10
- 0.0.4 — 2016-09-10
- 0.0.3 — 2016-09-10
- 0.0.2 — 2016-09-10
- 0.0.1 — 2016-09-10

## README

#BasicCredentials

Get user credentials from Basic Authentication method.

##Installation
```
	$ npm install BasicCredentials
```


##Usage

There are some examples.


######Get User :
```javascript
	var BasicCredentials = require('BasicCredentials');

	var basic = new BasicCredentials(req);


	basic.getUser(function(user){
			console.log(user);
	});

```

######Get Password:
```javascript
	var BasicCredentials = require('BasicCredentials');

	var basic = new BasicCredentials(req);


	basic.getPassword(function(password){
		console.log(password);
	});

```

######Get Basic Token:
```javascript
	var BasicCredentials = require('BasicCredentials');

	var basic = new BasicCredentials(req);


	basic.getToken(function(token){
		console.log(token);
	});

```

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