Socket
Socket
Sign inDemoInstall

@polkadot/vue-identicon

Package Overview
Dependencies
5
Maintainers
2
Versions
508
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @polkadot/vue-identicon

Renders an SVG picture representing an address


Version published
Weekly downloads
1.5K
increased by13.94%
Maintainers
2
Install size
9.34 MB
Created
Weekly downloads
 

Changelog

Source

3.6.6 Apr 17, 2024

Contributed:

  • Add compatibility layer for H160 addresses (Thanks to https://github.com/vikiival)

Changes:

  • Update ci checkout and setup_node to v4
  • Bump yarn to 4.1.1

Readme

Source

@polkadot/vue-identicon

A generic identity icon that can render icons based on an address.

Usage Examples

To install the component, do yarn add @polkadot/vue-identicon and then use it with import Identicon from '@polkadot/vue-identicon';

Inside a Vue component, you can now render any account with the associated icon, with associated props -

  • value - the address you wish to display
  • size (optional, defaults to 64) - the size in pixels
  • theme (optional, defaults to substrate) - the theme to use, one of
    • polkadot or
    • substrate (equivalent to jdenticon) or
    • beachball or
    • empty (displays nothing)
<template>
  <Identicon
    :size="128"
    :theme="'polkadot'"
    :value="'5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'"
  />
</template>

<script>
  import Identicon from '@polkadot/vue-identicon';

  export default {
    ...
    components: { Identicon }
    ...
  };
</script>

FAQs

Last updated on 17 Apr 2024

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