Skip to content

Commit 3fc756b

Browse files
committed
fix: Update docs and config
1 parent 06fa4fc commit 3fc756b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
---
66

7+
## Installation
8+
9+
Just install it with your favourite package manager:
10+
```sh
11+
pnpm install @pyncz/zod-key-mapper
12+
```
13+
714
## Usage
815

916
Let's say, you use a 3rd party API to fetch some data. You want to parse and transform it with zod for further usage, including some operations with keys, e.g. mapping keys from *snake_case* to *camelCase*, or even change some confusing field names into something more convenient.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pyncz/zod-key-mapper",
33
"description": "Transform keys of zod object schemas",
4-
"version": "0.0.0-development",
4+
"version": "1.0.1",
55
"license": "MIT",
66
"type": "module",
77
"author": "Pavel Yankovski <https://github.com/pyncz>",
@@ -20,7 +20,8 @@
2020
"exports": {
2121
".": {
2222
"import": "./dist/index.mjs",
23-
"require": "./dist/index.cjs"
23+
"require": "./dist/index.cjs",
24+
"types": "./dist/index.d.ts"
2425
}
2526
},
2627
"files": [

0 commit comments

Comments
 (0)