Yet another tiny identicon library.
Get unique identicon as SVG.
npm install @appbak3r/sushi-identicon
Or with yarn
yarn add @appbak3r/sushi-identicon
import { generateIdentIcon } from "@appbak3r/sushi-identicon";
document.body.appendChild(generateIdentIcon("hash"));
import { generateIdentIcon } from "@appbak3r/sushi-identicon";
export const App = () => {
const svgString = generateIdentIcon("hash", true);
return <div dangerouslySetInnerHTML={{ __html: svgString }} />;
};
Distributed under the MIT License. See LICENSE for more information.