Socket
Socket
Sign inDemoInstall

vue-gravatar

Package Overview
Dependencies
4
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-gravatar

Gravatar component for VueJS


Version published
Weekly downloads
2.3K
increased by5.27%
Maintainers
1
Install size
62.7 kB
Created
Weekly downloads
 

Readme

Source

vue-gravatar

Build Status NPM Version NPM Dowloads

A dead-simple gravatar component for VueJS applications.

DEMO

Installation

yarn add vue-gravatar

Usage

Register the component

import Vue from 'vue';
import Gravatar from 'vue-gravatar';

Vue.component('v-gravatar', Gravatar);

You may now use the component in your markup

<v-gravatar email="somebody@somewhere.com" />

Props

The following props are available:

  • hash (type: String) md5 hash of the gravatar
  • email (type: String) email address of the gravatar (used when md5 hash not given)
  • size (type: Number, default: 80) size of the avatar
  • default-img (type: String, default: 'retro') default image type (see. http://en.gravatar.com/site/implement/images/)
  • rating (type: String, default: 'g') rating of the image (see. http://en.gravatar.com/site/implement/images/)
  • alt (type: String, default: 'Avatar') The alternative text of the image
  • protocol (type: String, default: '') The protocol to use (use 'https' in electron apps)
  • hostname (type: String, default: 'www.gravatar.com') Alternative hostname for gravatar images
Example
<v-gravatar hash="f3ada405ce890b6f8204094deb12d8a8" alt="Nobody" :size="200" default-img="mm" />

License

The MIT License (MIT) - See file 'LICENSE' in this project

Copyright © 2017 Jiří Chára. All Rights Reserved.

FAQs

Last updated on 22 Mar 2021

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