@chettapong/nuxt-lodash

Lodash for Nuxt
62,537 4
Install
npm install @chettapong/nuxt-lodash
Latest Version:2.5.4
Vue:3
License:MIT
Last Updated:Aug 2, 2025
Links: GitHub  ·  npm
Maintainer: chettapong

💡 About

Lodash auto-import module for Nuxt.

📦 Install

  1. Install nuxt-lodash as development dependency:
npm i nuxt-lodash -D
  1. Add it to the modules section of your nuxt.config:
export default defineNuxtConfig({
  modules: ["nuxt-lodash"],
});

🚀 Example

Use any Lodash methods in your Nuxt application, they will be auto-imported!

<script setup>
  const text = useToUpper("it works!");
</script>

<template>
  <div>{{ text }}</div>
</template>

🔨 Config

Name Default Description
prefix 'use' String to prepend before each Lodash function (false to disable)
prefixSkip 'is' Functions that starts with this keywords will be skipped by prefix (false to disable)
upperAfterPrefix true If true it will automatically uppercase first letter after prefix (false to disable)
exclude [] Array of Lodash functions to exclude from auto-imports
alias [] Array of array pairs to rename specific Lodash functions (prefix is still added)

💻 Example - Config

export default defineNuxtConfig({
  modules: ["nuxt-lodash"],
  lodash: {
    prefix: "_",
    prefixSkip: ["string"],
    upperAfterPrefix: false,
    exclude: ["map"],
    alias: [
      ["camelCase", "stringToCamelCase"], // => stringToCamelCase
      ["kebabCase", "stringToKebab"], // => stringToKebab
      ["isDate", "isLodashDate"], // => _isLodashDate
    ],
  },
});

📄 License

MIT License © 2021-2022 - Michal Čípa

Related Packages

nuxt-lodash

Lodash for Nuxt

1,032,866 112
@privyid/nuxt-csrf

Module CSRF for NUXT

26,088 9
mixpanel-nuxt

Mixpanel module for Nuxt

19,992 7
nuxt-radash

radash for Nuxt

10,601 20
gsap-nuxt-module

GSAP integration for Nuxt.

8,932 37

Version History

Version Released License
2.5.4 MIT