Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sidebase/nuxt-parse
Parse, validate and transform data with confidence in nuxt using zod
https://github.com/sidebase/nuxt-parse
json nuxt nuxt3 typescript vue zod
Last synced: 7 days ago
JSON representation
Parse, validate and transform data with confidence in nuxt using zod
- Host: GitHub
- URL: https://github.com/sidebase/nuxt-parse
- Owner: sidebase
- License: mit
- Created: 2022-10-20T15:54:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T15:16:34.000Z (over 1 year ago)
- Last Synced: 2024-10-28T16:02:23.206Z (16 days ago)
- Topics: json, nuxt, nuxt3, typescript, vue, zod
- Language: TypeScript
- Homepage: https://sidebase.io/nuxt-parse/
- Size: 279 KB
- Stars: 53
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![nuxt-parse](.github/nuxt-parse.jpg)
# nuxt-parse
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![GitHub stars](https://badgen.net/github/stars/sidebase/nuxt-parse)](https://GitHub.com/sidebase/nuxt-parse/)
[![License][license-src]][license-href]
[![Follow us on Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/sidebase_io)
[![Join our Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/NDDgQkcv3s)> A nuxt focused package to make data validation and parsing easy. This package follows the design philosophy of the article [parse, don't validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/). It uses [`zod`](https://github.com/colinhacks/zod) for parsing data from the user, APIs, your own functions, ...
## Quick Start
```sh
npm i @sidebase/nuxt-parse
```Then visit the [Quick Start documentation](https://sidebase.io/nuxt-parse/getting-started/quick-start) to setup the package.
## Features
- ✔️ Validate Data using [`zod`](https://github.com/colinhacks/zod)
- ✔️ Deserialize and Serialize user, backend, api data
- ✔️ Helpers focused on Nuxt 3 usage and developer experience[npm-version-src]: https://img.shields.io/npm/v/@sidebase/nuxt-parse/latest.svg
[npm-version-href]: https://npmjs.com/package/@sidebase/nuxt-parse[npm-downloads-src]: https://img.shields.io/npm/dt/@sidebase/nuxt-parse.svg
[npm-downloads-href]: https://npmjs.com/package/@sidebase/nuxt-parse[license-src]: https://img.shields.io/npm/l/@sidebase/nuxt-parse.svg
[license-href]: https://npmjs.com/package/@sidebase/nuxt-parse## Development
- Run `npm run test` to generate type stubs
- Run `npm run lint` to run eslint
- Run `npm run type` to run typescheck via tsc
- Run `npm publish` to run build and publish the package