# nexp

> Express style API routing for Next.js

Latest version **1.1.1** (published 2021-07-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-07-10 |
| First published | 2021-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Utku Metin |
| Maintainers | utkumetin |

## Links

- npm: https://www.npmjs.com/package/nexp
- Repository: https://github.com/utkuumetin/nexp
- Homepage: https://github.com/utkuumetin/nexp#readme
- Issues: https://github.com/utkuumetin/nexp/issues
- npm.io page: https://npm.io/package/nexp

## Recent versions

- 1.1.1 (latest) — 2021-07-10
- 1.1.0 — 2021-07-08
- 1.0.1 — 2021-07-07
- 1.0.0 — 2021-07-07

## README

# 🧙 Nexp

Express style API routing for Next.js

## Installation

```bash
  npm i nexp --save
``` 
## Usage

You can use nexp in Next.js api files like this:

```javascript
import nexp from "nexp"

const router = nexp.Router();

router.set("GET", (req, res) => res.send(200));
router.set("POST", (req, res) => res.send(200));

export default router.handler();

```
or
```javascript
import nexp from "nexp"

const router = new nexp();

router.set("GET", (req, res) => res.send(200));
router.set("POST", (req, res) => res.send(200));

export default router.handler();

```
## Build using

- Typescript
  
## Licence

[MIT](https://choosealicense.com/licenses/mit/)

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