1.1.0 • Published 3 months ago

next-api-utils v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

next-api-utils

Build Status

Utilities for building better APIs with Next.js app router.

Installation

npm i next-api-utils

Documentation

Generated documentation for the latest version is available at next-api-utils.jonahsnider.dev.

Usage

Client components

If you try importing next-api-utils from a client component, you will get an error since certain features are only available on the server.

There is a separate export you can use in client components, which doesn't include any of the server-only features.

import { ... } from 'next-api-utils/client';

The default export and next-api-utils/server extend next-api-utils/client with server-only features.

1.1.0

3 months ago

1.0.4

5 months ago

1.0.3

6 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago