Utilities for Vue
String pt-BR date => Local date
import { valueToDate } from 'vue-the-utils'
// pt-BR
// const value = '25/12/2021'
// const value = '25-12-2021'
// const value = '25 12 2021'
// en-US
// const value = '2021/12/2021'
// const value = '2021-25-12'
// const value = '2021 25 12'
const date = valueToDate(value)
Object => Array
import { objectToArray } from 'vue-the-utils'
const array = objectToArray(object)
Translate en-US => pt-BR
import { translateUsToBr } from 'vue-the-utils'
const messageBr = translateUsToBr(messageUs)
$ npm install vue-the-utils --save
$ yarn add vue-the-utils
Vue-The-Utils is open-sourced software licensed under the MIT license
Hello, I'm Fábio Costa the maintainer of this project in my free time, if this project does help you in any way please consider to support me. Thanks 😃