# safe-passage

> A safe passage

Latest version **1.0.2** (published 2023-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install safe-passage
pnpm add safe-passage
yarn add safe-passage
bun add safe-passage
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-07-21 |
| First published | 2023-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 (+11 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ice1 |
| Maintainers | ice1 |
| Keywords | secure, security, safe, passage |

## Links

- npm: https://www.npmjs.com/package/safe-passage
- Repository: https://github.com/ICe1BotMaker/safe-passage
- Homepage: https://github.com/ICe1BotMaker/safe-passage#readme
- Issues: https://github.com/ICe1BotMaker/safe-passage/issues
- npm.io page: https://npm.io/package/safe-passage

## Dependencies (5)

- [multer](https://npm.io/package/multer.md) ^1.4.5-lts.1
- [express](https://npm.io/package/express.md) ^4.18.2
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [express-session](https://npm.io/package/express-session.md) ^1.17.3
- [express-rate-limit](https://npm.io/package/express-rate-limit.md) ^6.8.0

## Recent versions

- 1.0.2 (latest) — 2023-07-21
- 1.0.1 — 2023-07-21
- 1.0.0 — 2023-07-21

## README

# Safe Passage
Express security middleware used by [울집마켓](https://github.com/ICe1BotMaker/wehome-market) and [Kithub](https://github.com/ICe1BotMaker/kithub).

| Safe Passage NPM | Safe Passage Github |
|---|---|
| [Go NPM](https://www.npmjs.com/package/safe-passage) | [Go Github](https://github.com/ICe1BotMaker/safe-passage) |

## Usage

```js
import express from 'express';
import SafePassage from 'safe-passage';

const app = express();

app.use(SafePassage({
    header: true,
    error: true,
    valid: true,
    caching: true,
    limit: {
        windowMs: 15 * 60 * 1000,
        max: 1000
    },
    session_key: `testkey`,
    compress: true
}));

app.get(`/`, (req, res) => {
    res.setHeader(`Content-type`, `application/json`);
    res.send(JSON.stringify({}));
});

app.listen(8080, () => {
    console.log(`localhost:8080`);
});
```

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