New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hexdigital/nuxt-segment

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hexdigital/nuxt-segment

Nuxt 3 module for Segment

latest
Source
npmnpm
Version
1.3.5
Version published
Maintainers
5
Created
Source

Nuxt Plausible

npm version npm downloads License Nuxt

Nuxt 3 module to integrate Segment analytics 2.0.

Features

Quick Setup

  • Add @hexdigital/nuxt-segment dependency to your project
# Using pnpm
pnpm add -D @hexdigital/nuxt-segment

# Using yarn
yarn add --dev @hexdigital/nuxt-segment

# Using npm
npm install --save-dev @hexdigital/nuxt-segment

Add @hexdigital/nuxt-segment to the modules section of your Nuxt configuration:

// `nuxt.config.ts`
export default defineNuxtConfig({
  modules: ['@hexdigital/nuxt-segment']
})
  • Add configuration in nuxtConfig.segment or in nuxtConfig.runtimeConfig.public.segment

This module supports two ways of configuration:

  • Directly in key segment of the Nuxt config: nuxtConfig.segment
  • In public runtimeConfig: nuxtConfig.runtimeConfig.public.segment

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

Keywords

nuxt

FAQs

Package last updated on 16 Jul 2023

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