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

nuxt-component-meta

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-component-meta

Nuxt components metadata

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-39.56%
Maintainers
1
Weekly downloads
 
Created
Source

Nuxt Component Meta

Gather components metadata on build time and make them available on production

💡 This module depends on @nuxt/bridge

Quick Setup

  1. Add nuxt-component-meta dependency to your project:
# Using Yarn
yarn add --dev nuxt-component-meta
# Using NPM
npm install --save-dev nuxt-component-meta
  1. Add nuxt-component-meta/module to the buildModules section of your nuxt.config.js
{
  buildModules: ['nuxt-component-meta/module']
}

Usage

<template>
  <div>
    <h2>`MyComponent` metadata</h2>
    <pre>
      {{ component }}
    </pre>
  </div>
</template>

<script>
import { getComponent } from 'nuxt-component-meta'

export default {
  data() {
    return {
      meta: getComponent('my-component')
    }
  }
}
</script>

Development

  1. Clone this repository
  2. Install dependencies using yarn install
  3. Start dev server using yarn dev

Keywords

FAQs

Package last updated on 13 Oct 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