npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@deveodk/vue-seo

v1.0.1

Published

Easy way to add seo to any vue based page, works without use of jquery. Based on the original idea by GuillaumeLeclerc/vue-seo

Downloads

38

Readme

@Deveodk/vue-toastr

npm vue2

Easy way to add seo to any vue based page, works without use of jquery. Based on the original idea by GuillaumeLeclerc/vue-seo

Demo

See a functioning demo deveo demo site

Installation

npm install --save @deveodk/vue-seo

Usage

Bundler (Webpack, Rollup)

import Vue from 'vue'
import vueSeo from '@deveodk/vue-seo'
Vue.use(vueSeo)

Browser

<!-- From CDN -->
<script src="https://unpkg.com/@deveodk/vue-seo"></script>

Important disclaimer

Due to the fact that facebook and twitter wont execute javascript when crawling. The plugin will not work unless you use some sort of server side rendering. Google however defaults to some of facebooks open graph tags.

Usage

The api is very similar to the original vue-seo. Every content property is reactive

Basic

# Set the title
<seo-title content="title here"></seo-title>
# Set the description
<seo-description content="description here"></seo-description>
# Set the author
<seo-author content="author link here"></seo-author>
# Set the keywords
<seo-keywords content="keywords list here"></seo-keywords>
# set the canoncial link
<seo-canonical content="canoncial link here"></seo-canonical>

Open Graph (facebook)

# Set the title
<seo-og-title content="title here"></seo-og-title>
# Set the description
<seo-og-description content="description here"></seo-og-description>
# Set the site name
<seo-og-site-name content="site name here"></seo-og-site-name>
# Set the image
<seo-og-image content="image link here"></seo-og-image>
# set the see also
<seo-og-see-also content="see also link here"></seo-og-see-also>
# set the url
<seo-og-url content="set the url"></seo-og-url>

Google+

# Set the name
<seo-google-name content="name here"></seo-google-name>
# Set the description
<seo-google-description content="description here"></seo-google-description>
# Set the image
<seo-google-image content="image link here"></seo-google-image>

Twitter

# Set the title
<seo-twitter-title content="title here"></seo-twitter-title>
# Set the description
<seo-twitter-description content="description here"></seo-twitter-description>
# Set the image
<seo-twitter-image content="image link here"></seo-twitter-image>
# Set the card
<seo-twitter-card content="card description here"></seo-twitter-card>
# Set the url
<seo-twitter-url content="url here"></seo-twitter-url>
# Set the image
<seo-twitter-image content="image link here"></seo-twitter-image>

Custom properties

This provides an easy way to set html tags, there is not included in the standard package

# Set a custom propery
<seo-custom tag="meta" :attrName="'name'" :attrValue="'author'" contentName="'content'" content="image link here"></seo-twitter-image>

License

MIT

madewithloveandcofee