# tokra-use-next

> Exobase root hook to handle function running on Next.js api functions

Latest version **0.0.1-rc.2** (published 2022-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tokra-use-next
pnpm add tokra-use-next
yarn add tokra-use-next
bun add tokra-use-next
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-rc.2 |
| Published | 2022-10-03 |
| First published | 2022-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rayepps |
| Maintainers | rayepps |

## Links

- npm: https://www.npmjs.com/package/tokra-use-next
- npm.io page: https://npm.io/package/tokra-use-next

## Dependencies (1)

- [tokra](https://npm.io/package/tokra.md) ^0.0.1-rc.3

## Recent versions

- 0.0.1-rc.2 (latest) — 2022-10-03
- 0.0.1-rc.1 — 2022-10-02

## README

# `tokra-use-next`

> Exobase root hook to handle function running on Next.js api functions

## Install

```sh
yarn add tokra-use-next
```

## Usage

```ts
import { compose } from 'radash'
import type { Props } from 'tokra'
import { useNext } from 'tokra-use-next'

export const pingEndpoint = async (props: Props) => {
  return {
    message: 'pong'
  }
}

export default compose(useNext(), pingEndpoint)
```

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