Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/eungyeole/isomorphic-next
- Owner: eungyeole
- Created: 2024-06-13T10:07:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-02T12:15:44.000Z (about 2 months ago)
- Last Synced: 2024-10-28T23:26:37.991Z (20 days ago)
- Language: TypeScript
- Homepage:
- Size: 165 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.