Skip to content

Commit c5d2c66

Browse files
committed
docs: add usage section
1 parent a0cfd47 commit c5d2c66

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@
1515
- [Spread](#-spread)
1616
- [SplitMap](#-splitmap)
1717

18+
## Usage
19+
20+
```bash
21+
npm install patronum
22+
# or
23+
yarn add patronum
24+
```
25+
26+
Import function by its name from `patronum`:
27+
28+
```ts
29+
import { delay } from 'patronum/delay';
30+
```
31+
32+
Also use can import it from index:
33+
34+
> Be careful, with this method, all functions will be at your bundle
35+
36+
```ts
37+
import { delay } from 'patronum';
38+
```
39+
1840
## [🧁 Condition](/condition 'Documentation')
1941

2042
```ts

0 commit comments

Comments
 (0)