# @blubox/cookie-parser

> Blubox Cookies

Latest version **0.0.3** (published 2023-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blubox/cookie-parser
pnpm add @blubox/cookie-parser
yarn add @blubox/cookie-parser
bun add @blubox/cookie-parser
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-10-25 |
| First published | 2023-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gnzcode |
| Maintainers | gnzcode |
| Keywords | cors, blubox-cors, blubox, @blubox/cors |

## Links

- npm: https://www.npmjs.com/package/@blubox/cookie-parser
- Repository: https://github.com/gnzcode/blubox
- Homepage: https://github.com/gnzcode/blubox/tree/main/docs/cors
- Issues: https://github.com/gnzcode/blubox/issues
- npm.io page: https://npm.io/package/@blubox/cookie-parser

## Recent versions

- 0.0.3 (latest) — 2023-10-25
- 0.0.2 — 2023-10-17
- 0.0.1 — 2023-10-13

## README

# @blubox/cookie-parser

> Cookie Parser for Blubox

### Installation

```bash
npm i @blubox/cookie-parser
```

### Quick start

Install dependencies

```bash
npm install blubox @blubox/cookie-parser
```

Create a Blubox application

```js
const { Controller, router, App } = require('blubox')

const controller = new Controller()

const app = new App(
	router({
		ping: controller.get(ctx => {
			console.log(ctx.cookies)
			ctx.response.content = 'Pong!'
			ctx.response.finish()
		}),
	})
)
app.listen(3000)
```

Import Blubox Cookie Parser

```js
const cookieParser = require('@blubox/cookie-parser')
```

Use Blubox Cookie Parser middleware

```js
const controller = new Controller().use(cookieParser())
```

### License

[MIT](https://github.com/gnzcode/blubox/blob/main/LICENSE.md)

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