We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
nuxt-radash.yml
name: radash description: radash module with auto-import and custom prefix repo: bbg/nuxt-radash npm: nuxt-radash icon: radash.svg github: https://github.com/bbg/nuxt-radash website: https://github.com/bbg/nuxt-radash#readme learn_more: https://github.com/rayepps/radash/ category: Libraries type: 3rd-party maintainers: - name: Batuhan Göksu github: bbg compatibility: nuxt: ^3.0.0 requires: {}
Radash auto-import module for Nuxt.
Install nuxt-radash as development dependency:
nuxt-radash
npm i nuxt-radash -D
Add it to the modules section of your nuxt.config:
modules
nuxt.config
export default defineNuxtConfig({ modules: ["nuxt-radash"], });
Use any Radash methods in your Nuxt application, they will be auto-imported!
<script setup> const fish = [ { name: "Marlin", weight: 105, source: "ocean", }, { name: "Bass", weight: 8, source: "lake", }, { name: "Trout", weight: 1, source: "lake", }, ]; const ra = { Mode: "god", Power: "sun", }; const min = useMin(fish, (f) => f.weight); const text = usePascal("it works!"); const lowerize = useLowerize(ra); const snake = stringToSnake('green fish blue fish') </script> <template> <div>{{ text }}</div> <pre>{{ min }}</pre> <pre>{{ lowerize }}</pre> <pre>{{ snake }}</pre> </template>
prefix
'use'
prefixSkip
'is'
upperAfterPrefix
true
alias
[]
export default defineNuxtConfig({ modules: ["nuxt-radash"], radash: { prefix: '_', prefixSkip: ['string'], upperAfterPrefix: true, alias: [ ['snake', 'stringToSnake'], // => stringToSnake ] } });
The development of nuxt-radash was made possible thanks to the inspiration and code base from Nuxt-Lodash.
MIT License © 2023 - Batuhan Göksu
https://github.com/bbg/nuxt-radash
https://www.npmjs.com/~bbg0x
Nuxt 3
The text was updated successfully, but these errors were encountered:
@atinux could you please check?
PR: #713
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Description
nuxt-radash.yml
Radash for Nuxt
Radash auto-import module for Nuxt.
📦 Install
Install
nuxt-radash
as development dependency:Add it to the
modules
section of yournuxt.config
:🚀 Example
Use any Radash methods in your Nuxt application, they will be auto-imported!
🔨 Config
prefix
'use'
prefixSkip
'is'
upperAfterPrefix
true
alias
[]
💻 Example - Config
👋 Acknowledgement
The development of nuxt-radash was made possible thanks to the inspiration and code base from Nuxt-Lodash.
📄 License
MIT License © 2023 - Batuhan Göksu
Repository
https://github.com/bbg/nuxt-radash
npm
https://www.npmjs.com/~bbg0x
Nuxt Compatibility
Nuxt 3
The text was updated successfully, but these errors were encountered: