class-validator VS vue-property-decorator

Compare class-validator vs vue-property-decorator and see what are their differences.

class-validator

Decorator-based property validation for classes. [Moved to: https://github.com/typestack/class-validator] (by pleerock)

vue-property-decorator

Vue.js and Property Decorator (by kaorun343)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
class-validator vue-property-decorator
1 10
5,476 5,525
- -
8.7 3.2
about 3 years ago 12 months ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

class-validator

Posts with mentions or reviews of class-validator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-06.

vue-property-decorator

Posts with mentions or reviews of vue-property-decorator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-16.
  • How often do you use Decorators, and if you do was there any push back within your team?
    3 projects | /r/typescript | 16 Dec 2022
    In my last project these two were used a lot: https://github.com/kaorun343/vue-property-decorator and https://class-component.vuejs.org/
  • Vue + TS without class component ? No way!
    3 projects | dev.to | 15 Sep 2022
    Designed for vue 3, do the same work like vue-class-component and vue-property-decorator.
  • Any vue 3 with Typescript resources or tutorials ?
    3 projects | /r/vuejs | 28 Feb 2022
  • Objects and v-model in Vue3
    2 projects | dev.to | 30 Nov 2021
    When I was using Vue2 along with vue-class-component and vue-property-decorator it was easy to synchronize v-models between components simply using @ModelSync(). When Vue 3 came out with its Composition API another way was needed to achieve the same result as if Class Component was used.
  • Wait for Vue 3 to add Typescript?
    4 projects | /r/vuejs | 19 Aug 2021
  • Is it ready already?
    2 projects | /r/vuejs | 18 Apr 2021
    vue-property-decorator: This library works hand in hand with vue-class-component so that you can define properties/methods on your class for things like watchers, properties, etc:
  • How to create a scalable vue.js setup (Part I)
    4 projects | dev.to | 17 Feb 2021
    The next thing to tackle for a scalable application is, that we want to have a well written component that is easy to read and to reuse. Vue components are usually single file, which has it's benefits (e.g. if you want to change some css, and then html and oh, you also need to introduce this property in typescript...). It's also easier to maintain some code standard about how large a component should possibly become, if you had single file components (e.g. >250loc => linter error). To additionally increase readability, I like to use typescript class components flavoured with vue property decorators.
  • Aprendizados de 1 ano de projeto em vue.js com escopo ultra caótico
    2 projects | dev.to | 26 Jan 2021
    Vue2 não é muito bom pra lidar com typescript de forma vanilla, então o próprio core team e a comunidade criaram soluções pra você ter sintaxes alternativas (nada muito diferente) que suportam os toolings mais modernos e que tiveram maior adoção no decorrer dos últimos anos, como o vue-class-component, vue-property-decorator e o vuex-class. O caso mais notório de ferramenta que tira proveito disso, com certeza é o typescript. Com essas tecnologias, usar typescript é 100% possível, e usando essas sintaxes alternativas, diria até que o código fica mais enxuto e claro do que o vue sem nada (@Action do vuex-class, pra mim, tem uma sintaxe mais agradável que mapActions do vuex cru, por exemplo). Começamos o projeto sem, mas o Brunão começou a implementar usando isso e com uma curva bem pequena de aprendizado, aderimos felizes ao novo método de escrever componentes vue2.

What are some alternatives?

When comparing class-validator and vue-property-decorator you can also consider the following projects:

composition-api - Composition API plugin for Vue 2

InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

vue-class-component - ES / TypeScript decorator for class-style Vue components.

routing-controllers - Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework. [Moved to: https://github.com/typestack/routing-controllers]

vuex-module-decorators - TypeScript/ES7 Decorators to create Vuex modules declaratively

vue-input-validator - 🛡️ Highly extensible & customizable input validator for Vue 2

vitesome - A simple opinionated Vue3 Starter Template with Vite.js

node-jsonwebtoken - JsonWebToken implementation for node.js http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html

jsonapi-serializer - A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)

vue-cli - 🛠️ webpack-based tooling for Vue.js Development

express-typescript-starter - 👍 Build APIs You Won't Hate In Node Js. ✍️ Developed by Gentrit Abazi.

validated-types - Library for creating validated Typescript types for integers, floats, string and arrays