Skip to content

Commit af10898

Browse files
authored
Merge pull request #1 from z4nr34l/readme-add-installation
Added installation copy-pastes in readme
2 parents 18faa5a + c031707 commit af10898

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@
55
I've made this package for parsing Next.js `pathname` to structured segments, which you can use in various ways, for
66
example for creating breadcrumbs for current page.
77

8+
## Installation
9+
10+
### PNPM
11+
12+
```bash
13+
pnpm add next-router-segments
14+
```
15+
16+
### NPM
17+
18+
```bash
19+
npm i next-router-segments
20+
```
21+
22+
### YARN
23+
24+
```bash
25+
yarn add next-router-segments
26+
```
27+
828
## Usage
929

1030
### Next.js (App Router)

0 commit comments

Comments
 (0)