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.
- 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.
To install isomorphic-next, use npm or yarn and another package managers
npm install isomorphic-next
or
yarn add isomorphic-next
Here's a basic example of how to use isomorphic-next to access cookies and headers in your Next.js application.
import { cookies, headers } from 'isomorphic-next/headers';
We welcome contributions to isomorphic-next! If you have any suggestions, bug reports, or pull requests, please open an issue on our GitHub repository.
isomorphic-next is licensed under the MIT License. See the LICENSE file for more details.