Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
vue-convenia-util
Advanced tools
Plugin com validações, formatações e filtros para projetos Vue. Validação e formatação de CPF, CNPJ, datas, dinheiro (R$) etc.
Instale a dependência publicada no NPM.
yarn add vue-convenia-util
Adiciona todas as funcionalidades descritas no objeto de configuração ao protótipo do Vue e consequentemente aos componentes.
import Vue from 'vue'
import Util from 'vue-convenia-util'
Vue.use(Util, {
formatters: true,
formatFilters: true
})
new Vue({
...
<template>
<strong>CPF: {{ user.document | toCPF }}</strong>
<strong>{{ cash }}</strong>
</template>
<script>
export default {
data: () => ({ user: { ... } })
computed: {
cash() {
return this.$format.toMoney(this.user.cash)
}
}
vee-validate
O Util disponibiliza a função integrate
que serve basicamente para o integrar
em outras libs. Com o vee-validade, e por enquanto só com ele mesmo, basta usar
essa função.
import Util from 'vue-convenia-util'
import VeeValidate, { Validator } from 'vee-validate'
// Util.integrate(nome da lib, objeto de integração, opções opcionais)
Util.integrate('vee-validate', Validator, {
isEmail: { // Por padrão apenas o isEmail é a única função que não é
name: 'email', // injetada no Validator e essa é a forma de faze-lo.
getMessage: () => 'Email inválido.'
}
})
FAQs
Plugin com validações, formatações e filtros para projetos Vue.
The npm package vue-convenia-util receives a total of 104 weekly downloads. As such, vue-convenia-util popularity was classified as not popular.
We found that vue-convenia-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.