@appbak3r/sushi-identicon
v3.0.0
Published
Yet another identicon library. Get unique icon as SVG
Maintainers
Readme
Sushi Identicon
Yet another tiny identicon library.
Get unique identicon as SVG.
![]()
Usage
Install
npm install @appbak3r/sushi-identiconOr with yarn
yarn add @appbak3r/sushi-identiconOutput as a SVG Element
import { generateIdentIcon } from "@appbak3r/sushi-identicon";
document.body.appendChild(generateIdentIcon("hash"));Output as a string
import { generateIdentIcon } from "@appbak3r/sushi-identicon";
export const App = () => {
const svgString = generateIdentIcon("hash", true);
return <div dangerouslySetInnerHTML={{ __html: svgString }} />;
};License
Distributed under the MIT License. See LICENSE for more information.
