Socket
Socket
Sign inDemoInstall

nuxt-seo

Package Overview
Dependencies
2
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt-seo

SEO / HTML Meta Tags Module for Nuxt.js


Version published
Weekly downloads
516
increased by6.61%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Nuxt SEO

Node Version Downloads Travis

SEO / HTML Meta Tags Module for Nuxt.js

Installation

Module available through the npm registry. It can be installed using the npm or yarn command line tools.

# NPM
npm install nuxt-seo --save
# Or Using Yarn
yarn add nuxt-seo

Documentation

Setup

  • Add nuxt-seo to modules section of your nuxt.config.js
{
	modules: [
		'nuxt-seo'
	],
	seo: {
		// Module options
		name: '<name of site>',
		title: '<title default>',
		description: '<description default'
		//...
	}
}

Module options

name
  • Default: false
  • Type: String
charset
  • Default: utf-8
  • Type: String
title
  • Default: TITLE
  • Type: String
lang
  • Default: en
  • Type: String
language
  • Default: English
  • Type: String
image
  • Default: false
  • Type: URL String
description
  • Default: false
  • Type: String
keywords
  • Default: []
  • Type: Array[...keywords] || String
type

author

  • Default: false
  • Type: Array[name, email || site] || String
url
  • Default: false
  • Type: URL String

Vue Context

  • asyncData: function({ seo }) { seo(options) }
<template>
	<h1>Hello World</h1>
</template>

<script>
	export default {
		asyncData: function(ctx) {
			ctx.seo({
				title: 'Home Page',
				description: 'Hello World Page'
			})
		},
		head: {
			//title: 'Home Page'
		}
	}
</script>

Tests

To run the test suite, first install the dependencies, then run test:

# NPM
npm test
# Or Using Yarn
yarn test

Dependencies

  • debug: small debugging utility

Dev Dependencies

  • ava: Testing can be a drag. AVA helps you get it done.
  • nuxt: A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)
  • vue: Reactive, component-oriented view layer for modern web interfaces.

Contributors

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.

License

MIT © Tiago Danin

Keywords

FAQs

Last updated on 20 Apr 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc