Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Github style SVG identicons / user-avatars. Want to see a live example? See Giticon on pholder.com/imaginary-interiors.
npm install giticon --save
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>
Giticon is a simplified loose fork of https://github.com/stewartlord/identicon.js/tree/master that only supports SVG.
MIT.
FAQs
Github style identicons
We found that giticon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.