1.1.0 • Published 1 year ago
nuxt-change-case v1.1.0
nuxt-change-case
change-case-all@1.0.15 implementation as nuxt module.
Setup
- Add
nuxt-change-casedependency to your project
yarn add nuxt-change-case # or npm install nuxt-change-case- Add
nuxt-change-caseto themodulessection ofnuxt.config.js
{
modules: [
'nuxt-change-case'
]
}Usage
<h1> {{ $pascalCase('hello world') }} </h1>
// HelloWorld<h1> {{ $lowerCase('Çocuk Adam Bak Buraya') }} </h1>
// çocuk adam bak buraya<h1> {{ $localeUpperCase('şemsi paşa pasajında sesi büzüşesiceler', 'tr') </h1>
// ŞEMSİ PAŞA PASAJINDA SESİ BÜZÜŞESİCELER<h1> {{ $localeLowerCase('KENAN MEMEDOV! SOVIETSKA ARMY', 'az') </h1>
// kenan memedov! sovietska army// In asyncData
asyncData ({ $paramCase }) {
console.log($paramCase('nuxt change case'))
}
// nuxt-change-casePlease check full documentation. Same as change-case-all@1.0.15.
Additional Converters
These methods are custom-written methods on this module that are not provided by change-case-all.
<h1> {{ $localeCapitalCase('benim adım ibrahim yılmaz', 'tr') </h1>
// Benim Adım İbrahim YılmazDevelopment
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
Copyright (c) selimdoyranli selimdoyranli@gmail.com