Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eungyeole/isomorphic-next

A "single implementation" for both server and client in Next.js is possible.
https://github.com/eungyeole/isomorphic-next

Last synced: 3 days ago
JSON representation

A "single implementation" for both server and client in Next.js is possible.

Awesome Lists containing this project

README

        

# isomorphic-next

isomorphic-next is a utility library for Next.js that allows you to access cookies and headers seamlessly on both the server and client sides with the same API.

## Features

- **Isomorphic Access**: Provides a unified API to access cookies and headers both on the server and client sides.
- **Easy Integration**: Simple to set up and integrate with your existing Next.js projects.
- **TypeScript Support**: Fully typed with TypeScript for a better developer experience.

## Installation

To install isomorphic-next, use npm or yarn and another package managers

```bash
npm install isomorphic-next
```

or

```bash
yarn add isomorphic-next
```

## Usage

Here's a basic example of how to use isomorphic-next to access cookies and headers in your Next.js application.

### Accessing Cookies

```javascript
import { cookies, headers } from 'isomorphic-next/headers';

```

### Accessing Headers

## Contributing

We welcome contributions to isomorphic-next! If you have any suggestions, bug reports, or pull requests, please open an issue on our [GitHub repository](https://github.com/eungyeole/isomorphic-next).

## License

isomorphic-next is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.