Socket
Socket
Sign inDemoInstall

giticon

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giticon

Github style identicons


Version published
Maintainers
1
Created
Source

TwitchPoker user avatar identiconGiticon

Github style SVG identicons / user-avatars. Want to see a live example? See Giticon on pholder.com/imaginary-interiors.

Coverage Status

Installation

npm install giticon --save

NPM Stats

Usage

const giticon = require('giticon');

const optionalOverrides = {
  background: [240, 240, 240, 255],
  margin:     0.2,
  size:       40,
  saturation: 0.7,
  brightness: 0.5
};

const svgIdenticon = giticon('TwitchPoker', optionalOverrides);

console.log(svgIdenticon);

// <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="background-color: rgba(240,240,240,255);" viewBox="0 0 40 40">
//     <path
//       shape-rendering="crispEdges"
//       style="fill: rgba(46, 217, 38, 1 ); stroke: rgba(46, 217, 38, 1 ); strokeWidth: 1; max-width: 100%; max-height: 100%;"
//       d="M18,10 h4 v4 h-4z M18,14 h4 v4 h-4z M18,26 h4 v4 h-4z M14,26 h4 v4 h-4z M22,26 h4 v4 h-4z M10,10 h4 v4 h-4z M26,10 h4 v4 h-4z M10,22 h4 v4 h-4z M26,22 h4 v4 h-4z"
//     />
// </svg>

Credit

Giticon is a simplified loose fork of https://github.com/stewartlord/identicon.js/tree/master that only supports SVG.

License

MIT.

Keywords

FAQs

Package last updated on 21 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc