- Notifications
You must be signed in to change notification settings - Fork92
Javascript library for generating identicons. Running in the browser and on Node.js.
License
dmester/jdenticon
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JavaScript library for generating highly recognizable identicons using HTML5 canvas or SVG.
Using Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website.
Jdenticon is able to render both raster and vector identicons. Raster icons are renderedslightly faster than vector icons, but vector icons scale better on high resolution screens.Add a canvas to render a raster icon, or an inline svg element to render a vector icon.
<!-- Vector icon --><svgwidth="80"height="80"data-jdenticon-value="icon value"></svg><!-- OR --><!-- Raster icon --><canvaswidth="80"height="80"data-jdenticon-value="icon value"></canvas>
Include the Jdenticon library somewhere on your page. You can either host it yourself oruse it right offjsDelivr.
<!-- Using jsDelivr --><scriptsrc="https://cdn.jsdelivr.net/npm/jdenticon@3.3.0/dist/jdenticon.min.js"integrity="sha384-LfouGM03m83ArVtne1JPk926e3SGD0Tz8XHtW2OKGsgeBU/UfR0Fa8eX+UlwSSAZ"crossorigin="anonymous"></script><!-- OR --><!-- Hosting it yourself --><scriptsrc="-path-to-/jdenticon.min.js"></script>
That's it!
For more usage examples and API documentation, please see:
There are ports or bindings for Jdenticon available for the following platforms:
Jdenticon is available under theMIT license.
About
Javascript library for generating identicons. Running in the browser and on Node.js.