Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-lodash

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-lodash

Lodash auto-import for Nuxt.js

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
increased by5.48%
Maintainers
1
Weekly downloads
 
Created
Source

Nuxt 3 - lodash

Version License Types

💡 About

Lodash auto-import module for Nuxt3, supports custom prefix and list of exludes

📦 Install

npm i nuxt-lodash -D

💻 Usage

import { defineNuxtConfig } from "nuxt3";

export default defineNuxtConfig({
  buildModules: [
    [
      "nuxt-lodash",
      {
        prefix: "use",
        excludes: ["map"],
      },
    ],
  ],
});

🔨 Config

NameDefaultDescription
prefixfalsestring to prepend before each function (false to disable)
excludes[]list of functions to exlude from auto-imports

💻 Example

<template>
  <div>{{ text }}</div>
</template>
<script setup lang="ts">
  const text = useToUpper("it works!");
</script>

📄 License

MIT License © 2021-PRESENT Michal Čípa

Keywords

FAQs

Package last updated on 26 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc