Skip to content

Commit

Permalink
fix: Update docs and config
Browse files Browse the repository at this point in the history
  • Loading branch information
pyncz committed Apr 4, 2023
1 parent 06fa4fc commit 3fc756b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

---

## Installation

Just install it with your favourite package manager:
```sh
pnpm install @pyncz/zod-key-mapper
```

## Usage

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.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pyncz/zod-key-mapper",
"description": "Transform keys of zod object schemas",
"version": "0.0.0-development",
"version": "1.0.1",
"license": "MIT",
"type": "module",
"author": "Pavel Yankovski <https://github.com/pyncz>",
Expand All @@ -20,7 +20,8 @@
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
Expand Down

0 comments on commit 3fc756b

Please sign in to comment.