@@ -42,32 +42,31 @@ Use any [Lodash](https://lodash.com) methods in your Nuxt application, they will
4242
4343## 🔨 Config
4444
45- | Name | Default | Description |
46- | ------------------ | -------- | ------------------------------------------------------------------------------------ |
47- | ` prefix ` | ` 'use' ` | String to prepend before each Lodash function (false to disable) |
48- | ` prefixSkip ` | ` [ 'is'] ` | Functions that starts with keywords in this array will be skipped by prefix |
49- | ` upperAfterPrefix ` | ` true ` | If true it will automatically uppercase first letter after prefix (false to disable) |
50- | ` exclude ` | ` [] ` | Array of Lodash functions to exclude from auto-imports |
51- | ` alias ` | ` [] ` | Array of array pairs to rename specific Lodash functions (prefix is still added) |
45+ | Name | Default | Description |
46+ | ------------------ | ------- | - ------------------------------------------------------------------------------------ |
47+ | ` prefix ` | ` 'use' ` | String to prepend before each Lodash function (false to disable) |
48+ | ` prefixSkip ` | ` 'is' ` | Functions that starts with this keywords will be skipped by prefix (false to disable) |
49+ | ` upperAfterPrefix ` | ` true ` | If true it will automatically uppercase first letter after prefix (false to disable) |
50+ | ` exclude ` | ` [] ` | Array of Lodash functions to exclude from auto-imports |
51+ | ` alias ` | ` [] ` | Array of array pairs to rename specific Lodash functions (prefix is still added) |
5252
5353## 💻 Example - Config
5454
5555``` ts
5656export default defineNuxtConfig ({
57- modules: [' nuxt-lodash' ],
57+ modules: [" nuxt-lodash" ],
5858 lodash: {
59- prefix: ' _ ' ,
60- prefixSkip: [' string' ],
59+ prefix: " _ " ,
60+ prefixSkip: [" string" ],
6161 upperAfterPrefix: false ,
62- exclude: [' map' ],
62+ exclude: [" map" ],
6363 alias: [
64- [' camelCase' , ' stringToCamelCase' ], // => stringToCamelCase
65- [' kebabCase' , ' stringToKebab' ], // => stringToKebab
66- [' isDate' , ' isLodashDate' ], // => _isLodashDate
64+ [" camelCase" , " stringToCamelCase" ], // => stringToCamelCase
65+ [" kebabCase" , " stringToKebab" ], // => stringToKebab
66+ [" isDate" , " isLodashDate" ], // => _isLodashDate
6767 ],
6868 },
69- })
70-
69+ });
7170```
7271
7372## 📄 License
0 commit comments