{"_id":"@emeraldpay/hashicon","_rev":"4-9a0a545d39b09d8cbe7832083c52565e","name":"@emeraldpay/hashicon","dist-tags":{"latest":"0.5.2"},"versions":{"0.4.0":{"name":"@emeraldpay/hashicon","version":"0.4.0","description":"Hashicon - a visual representation of a hash value, as a hexagon","types":"lib/index.d.ts","main":"lib/index.js","scripts":{"test":"echo \"*** TODO TESTS ***\"","clean":"rimraf lib","build:ts":"tsc","build":"npm run build:ts","prepublishClean":"rimraf lib/index.stories.*","prepublishOnly":"npm run clean && npm run test && npm run build && npm run prepublishClean","storybook":"start-storybook"},"repository":{"type":"git","url":"git+https://github.com/emeraldpay/hashicon.git"},"keywords":["hash","icon","avatar","identicon","generate","generator","visual","canvas"],"author":{"name":"Richard Schumann","email":"schumanncombo@gmail.com","url":"http://schumanncombo.com"},"contributors":[{"name":"Oori | Pluggable","url":"http://github.com/oori"},{"name":"Igor Artamonov","url":"http://github.com/splix"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/emeraldpay/hashicon/issues"},"homepage":"https://ETCDEVTeam.github.io/hashicon/examples/","engines":{"node":">=8"},"dependencies":{"js-sha3":"^0.8.0"},"devDependencies":{"typescript":"^3.9.6","rimraf":"^2.6.3","jest":"24.8.0","@types/jest":"24.0.13","ts-jest":"24.0.2","jest-serial-runner":"1.1.0","@storybook/html":"^5.3.19","babel-loader":"^8.1.0","@babel/core":"^7.10.4","ts-loader":"^7.0.5"},"_id":"@emeraldpay/hashicon@0.4.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-2EB6Z8gS/DK36+SslIuoHE8wdU6pBqljMTjIYxLC8hBN8n2yhhE+xdmifPjqfqOvF/7Wb5HmoNaPX6RGuBrasg==","shasum":"0dcd4db6d589b4eb30495b9995ff66fc9e57f833","tarball":"https://registry.npmjs.org/@emeraldpay/hashicon/-/hashicon-0.4.0.tgz","fileCount":16,"unpackedSize":35046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBTv2CRA9TVsSAnZWagAAdSMP/i7haoGxqF8X9x//8ZQS\n1hg3U9G8Zze3e/Qj2dzPUADyvCYq92YDSuBqfwaGVY958ROqasn3sObxOg4I\nDstuYg2JjuD4hSMUO6+1nihZ+BYOymBRNlJFZhMa0c7kdhGM9jAAynbL1ogJ\n15EorMy/P/d4eLQA9h6FOe7EE3UTlvNc9HWIqytxTe7CaI9RvS4cn0KnGxF5\nzeQbtRCi8pmFXfvyX/kY+Nj5hODjCHRz3TUNyLUzE+agNQXyWudCFOSjOYdq\nKj2q4mZ1vBAgG7IqD4dVxlCa32/wBJOPGqEyE1gfyJv5IjFbsQxmSnluC/jV\npsKWiVFbnuYykPUg9QSHyRQmf7XSHsdcyX028mW7uk76UpmddGZKURRKWhw1\nFzbG3PM3OHjKH3oPbzhnQeSSmVGxFumC1/nBNWptPq5fklPbHS7V3CCmS61w\nPWdyPX5jjwXo3HpXT7sBz46+T/CzUEwD6qRVSTxb3wDzMveyuCKYrSMVwnRb\nRwRce7yh5mZsa3DYkV1oSQRZVvsCOQ4n40SJmA4jml6plNna22miCR0BWeyz\ncGED4o5fyuExDDZK9fWtl8dpS4d/F0u7kC/po2zhsmdBbXtpINsbbsPocBrp\ng5pQiiQHLvx53TLVFgUv3bs2QAapG49ZwAVY+sWBdjr8+vJSbBTkwZZfjcJ+\nbaVL\r\n=J0iJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxQKgx1exCB8awSKrd14kTtMXudtwPydkNTUvFukxDpwIhAKfRoiu1kbJKTxAWlAo7LUFHK9eOBOa7t9ZQpPi4AFGi"}]},"maintainers":[{"name":"splix","email":"igor@artamonov.ru"}],"_npmUser":{"name":"splix","email":"igor@artamonov.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hashicon_0.4.0_1594178550361_0.30939894816011226"},"_hasShrinkwrap":false},"0.5.0":{"name":"@emeraldpay/hashicon","version":"0.5.0","description":"Hashicon - a visual representation of a hash value, as a hexagon","types":"lib/index.d.ts","main":"lib/index.js","scripts":{"test":"echo \"*** TODO TESTS ***\"","clean":"rimraf lib","build:ts":"tsc","build":"npm run build:ts","prepublishClean":"rimraf lib/index.stories.*","prepublishOnly":"npm run clean && npm run test && npm run build && npm run prepublishClean","storybook":"start-storybook"},"repository":{"type":"git","url":"git+https://github.com/emeraldpay/hashicon.git"},"keywords":["hash","icon","avatar","identicon","generate","generator","visual","canvas"],"author":{"name":"Richard Schumann","email":"schumanncombo@gmail.com","url":"http://schumanncombo.com"},"contributors":[{"name":"Oori | Pluggable","url":"http://github.com/oori"},{"name":"Igor Artamonov","url":"http://github.com/splix"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/emeraldpay/hashicon/issues"},"homepage":"https://ETCDEVTeam.github.io/hashicon/examples/","engines":{"node":">=8"},"dependencies":{"@stablelib/blake2s":"^1.0.0"},"devDependencies":{"js-sha3":"^0.8.0","typescript":"^3.9.6","rimraf":"^2.6.3","jest":"24.8.0","@types/jest":"24.0.13","ts-jest":"24.0.2","jest-serial-runner":"1.1.0","@storybook/html":"^5.3.19","babel-loader":"^8.1.0","@babel/core":"^7.10.4","ts-loader":"^7.0.5"},"_id":"@emeraldpay/hashicon@0.5.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-kJEdJ81hz66hHHsRI38QppDzNSJFFVKzTx+jcE7b/8TBfSrKylOhylG/cw61BswimyKllR+MZpOa8Rldblv9AQ==","shasum":"651c695a91cca0cfca01eab3f31804ecddf4a590","tarball":"https://registry.npmjs.org/@emeraldpay/hashicon/-/hashicon-0.5.0.tgz","fileCount":16,"unpackedSize":35934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHz0uCRA9TVsSAnZWagAAyKkP/1c8LeJxwprfEXr3po19\nNT4xrTLIsRuXx7Vkqui7AtAHa/FPWSoEpvFAOmDgFUP5MrxY8SvsStXMyMLp\nDo49AN+KznLCCgnz/qakPqgrNJMHEX5NYJIIISgVSYSnfo9ztjLpa6W4JpWa\ns6cTLR0WYyThsvkaid019tsqSHiOkQS6MmjEsyAvMSb7KQOAZ5tJuwOfuRw8\nB3/QVeJkRIEjju18Q4ir+s1JRpOGLgV2Qwy3kq3rvp6YcQYPA9GUhaX/7uFj\nnU/xA1PMnE1VCMBvn3FkdzQHm3MAtAKlUTnvA/NjEwcnhOz5GKbFEyYMQzQU\nroVYwXHWBqllgGserP1cmP5s2bS6Pc6cfEh5d1k0DbBtyGWAd/D7fVBrLndq\ngX7vV8Tt3LbbNXhul9YxLHknrp/uKr1dHltfPLvRbM26kER8J1hBx9yLmKaX\nURIZQ9qaqXfzkhsxl5sKwDdsV62ciaEavQ9K4j06vIahzgLatv4Z3Q5gx31n\nvA7b8wxUIN1xMKDmmaDY7mGZRwBm1mRtu7YuIGyFXWPYfuhIqqrZt8B86NTe\nMb/ibBqrQDTw6NsOryn3WlQaYYDbisApuz1CZBEjMEkNVOmuHBdIZNkaUkqR\nTM+PRwMqmnnuRwO4/Hhs0Wzih1t/rQsBbx0KEEEgvCwf/hFXVhSEFB79Hqz0\nTFqa\r\n=i85O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJZT+nMMjFu5AMWjrp+LcZdF+RD/ETN3oonsvq8bZJ0AIgD4x0pxgejs6lw9RK3a6vM93e4c0cN/FejPOeb6seiWw="}]},"maintainers":[{"name":"splix","email":"igor@artamonov.ru"}],"_npmUser":{"name":"splix","email":"igor@artamonov.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hashicon_0.5.0_1595882797710_0.4706946863404975"},"_hasShrinkwrap":false},"0.5.1":{"name":"@emeraldpay/hashicon","version":"0.5.1","description":"Hashicon - a visual representation of a hash value, as a hexagon","types":"lib/index.d.ts","main":"lib/index.js","scripts":{"test":"echo \"*** TODO TESTS ***\"","clean":"rimraf lib","build:ts":"tsc","build":"npm run build:ts","prepublishClean":"rimraf lib/index.stories.*","prepublishOnly":"npm run clean && npm run test && npm run build && npm run prepublishClean","storybook":"start-storybook"},"repository":{"type":"git","url":"git+https://github.com/emeraldpay/hashicon.git"},"keywords":["hash","icon","avatar","identicon","generate","generator","visual","canvas"],"author":{"name":"Richard Schumann","email":"schumanncombo@gmail.com","url":"http://schumanncombo.com"},"contributors":[{"name":"Oori | Pluggable","url":"http://github.com/oori"},{"name":"Igor Artamonov","url":"http://github.com/splix"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/emeraldpay/hashicon/issues"},"homepage":"https://ETCDEVTeam.github.io/hashicon/examples/","engines":{"node":">=8"},"dependencies":{"@stablelib/blake2s":"^1.0.0","js-sha3":"^0.8.0","text-encoding":"^0.7.0"},"devDependencies":{"typescript":"^3.9.6","rimraf":"^2.6.3","jest":"24.8.0","@types/jest":"24.0.13","@types/text-encoding":"0.0.35","ts-jest":"24.0.2","jest-serial-runner":"1.1.0","@storybook/html":"^5.3.19","babel-loader":"^8.1.0","@babel/core":"^7.10.4","ts-loader":"^7.0.5"},"_id":"@emeraldpay/hashicon@0.5.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-pMvnz6CkCqzoB2srA3B/gCKIi6h24O1Chfj919OqyCC08Kc0zCCok6iQoJ2cP5T+P2utGeR/El7jE4Q2JgmP+A==","shasum":"f2fd30dace08d3fed9db66732f803b0e6f60ce05","tarball":"https://registry.npmjs.org/@emeraldpay/hashicon/-/hashicon-0.5.1.tgz","fileCount":16,"unpackedSize":36070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH02kCRA9TVsSAnZWagAAv/0P/2VqcBVliiRp5H1mXSDb\nDQbFzoP2glgHzqdshqx9JULyl7vs/AH0YMlkM89VMxHo8l7BavAUK8SF/+2B\no6laxQQ+q/rLIOn9c3CxPEys3mqjdR6krouK7spREo4sXrI0XwNPfwIj1PeS\ny2p5+aXzaGuHzJkBclghqtcHMzYgt7NKu0e4SHQV5N0vugxLFBfMnQlVopsZ\nLO9bhscAD6cErwtke/ItiOVhrzLYd8F00T9nPTKsFydQT3v0CNIZdX7x6Ald\nuJBAqUJ5P0GaxgcILG73UH6J5sNGQ650dYxPHl8kg+z+w0g/UNoW3pk7Y2ta\nsFbdERz+hKl/2d6UPw0fsFVJizif0Q0NpqNb+0zBzjPRfCm/2nhK2jBCZ1gn\nkIXiwq0gXT0TmCux3ebylYGeiouvoabR3tuRcSbzzCNTRS9X6RE0jZEzmwOo\nhCCqbCaUMN3aKViGJSdnc+8GMWA9sXO7nJBwSfFd6eZSABS98dkzFGLP9ugJ\nlUibIugPmTqRuZPGEm/eywkpXvAhtYoNCJhSljychaRwoVbNv6aHWE6uXJ3g\nLHRTQ7y7Y89hU3pNw0l1VsLoHhXXHRPZM0Ds2x8uDQer+3b/u7b5yrnuhgAy\nylK2EWIJzJBXrEH7iNhEHu5R4BMe3VlTTz+G3/RdEH3xuhKe3VilILRQM9WK\n5ust\r\n=WOOl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHH9kIS9mF16/ckC10VzaD+rSalnFEeDjtLIBrWUco/CAiAxbvP3ioCHL39XDhjgS0qaiNAvdW/8kd/ioAroEbW72w=="}]},"maintainers":[{"name":"splix","email":"igor@artamonov.ru"}],"_npmUser":{"name":"splix","email":"igor@artamonov.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hashicon_0.5.1_1595887010817_0.8834187289254747"},"_hasShrinkwrap":false},"0.5.2":{"name":"@emeraldpay/hashicon","version":"0.5.2","description":"Hashicon - a visual representation of a hash value, as a hexagon","types":"lib/index.d.ts","main":"lib/index.js","scripts":{"test":"echo \"*** TODO TESTS ***\"","clean":"rimraf lib","build:ts":"tsc","build":"npm run build:ts","prepublishClean":"rimraf lib/index.stories.*","prepublishOnly":"npm run clean && npm run test && npm run build && npm run prepublishClean","storybook":"start-storybook"},"repository":{"type":"git","url":"git+https://github.com/emeraldpay/hashicon.git"},"keywords":["hash","icon","avatar","identicon","generate","generator","visual","canvas"],"author":{"name":"Richard Schumann","email":"schumanncombo@gmail.com","url":"http://schumanncombo.com"},"contributors":[{"name":"Oori | Pluggable","url":"http://github.com/oori"},{"name":"Igor Artamonov","url":"http://github.com/splix"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/emeraldpay/hashicon/issues"},"homepage":"https://ETCDEVTeam.github.io/hashicon/examples/","engines":{"node":">=8"},"dependencies":{"@stablelib/blake2s":"^1.0.0","js-sha3":"^0.8.0"},"devDependencies":{"typescript":"^3.9.6","rimraf":"^2.6.3","jest":"24.8.0","@types/jest":"24.0.13","ts-jest":"24.0.2","jest-serial-runner":"1.1.0","@storybook/html":"^5.3.19","babel-loader":"^8.1.0","@babel/core":"^7.10.4","ts-loader":"^7.0.5"},"_id":"@emeraldpay/hashicon@0.5.2","_nodeVersion":"12.22.9","_npmVersion":"6.14.15","dist":{"integrity":"sha512-MNsjV+Vik+ofOYmGPcdAQW4CoSSrTE2Iq2xYNS8PxV84QrgOLTsC/pV6EWb1N/dTY9ndMV/RAAzGh6cmrZf4zA==","shasum":"10c4e1ccb6f02b8de59f12d96600182af7c7b7e7","tarball":"https://registry.npmjs.org/@emeraldpay/hashicon/-/hashicon-0.5.2.tgz","fileCount":16,"unpackedSize":35937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAdrMCRA9TVsSAnZWagAAKbgQAJORNdbOBu8ROjWQ7Oiw\nBYJM2Lhp660CEglOKHNblh+4Y6ZI0rVFV8mSOZAZuxDN0IqgTkyLxgtvjJfM\nyUFjDaJNakzqTpAZlQ4TLgw+gKnU9AxHzJF07hkzZ1fUgzZUZwsS9+hV48HN\nxxBVIImu+Qmm8Z3gNgeN7cgK2YLYn4u1mgMl3Zdnobthy4ur9upGXbce/rRr\nQcEpyck+v5qBYdGBJb1dM+mANTcbhwjr0q6G2MFtPH8VHuXflIJe9XxaMFhP\nderyL3ZOdOh70ZVwMkf0Vtkms1KT6AHTAAnS4zoMTGlvlenV2CB5u83KYDEm\nMZ93C/v5CpqeEp5sFMo8eQGtYI2qpjZNq1qbvWP7vlEEoReJTTbM7dlW43c/\nCfGHCIqPEBj7dG4fVowTP33nZ4h1hDcL+oennyt9K4fzd5D/eyKwCpr+VenV\nVA9Kiefu7wAYLsK5mqdxK82M7HavFw8YaZWb32TdRYA3TliByJy4ITDzlDYv\ngr6ovZfi3j2H6dpKa5/7YTGsKxjM7jqlMSSbvL2KOkBLM1ZS2en4Iwqxwzsm\n8bsu9kxxSz/4m045XNH2Mvv1UrBcpaetniZIWMh3DoTRNJ7gECzLaQCMvDeH\nkJX/pYJl7NLJNi0Mot0snih0Qg9t2O2XssvbpqFGUibRhkzMU15F9t3z/JqP\n/PCN\r\n=Eb7q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSnz6BvG+aKzzbKk+Xg0+bmjc6x3fc3omOV4s/9r3BUAiAXzNMJ/wo50G4udCzAA9RCRLISUBgRiLca/xcx5Gw2ZQ=="}]},"_npmUser":{"name":"splix","email":"igor@artamonov.ru"},"directories":{},"maintainers":[{"name":"splix","email":"igor@artamonov.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hashicon_0.5.2_1644288716420_0.38388152234184214"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-08T03:22:30.153Z","0.4.0":"2020-07-08T03:22:30.515Z","modified":"2022-04-05T07:32:17.542Z","0.5.0":"2020-07-27T20:46:37.882Z","0.5.1":"2020-07-27T21:56:50.956Z","0.5.2":"2022-02-08T02:51:56.547Z"},"maintainers":[{"name":"splix","email":"igor@artamonov.ru"}],"description":"Hashicon - a visual representation of a hash value, as a hexagon","homepage":"https://ETCDEVTeam.github.io/hashicon/examples/","keywords":["hash","icon","avatar","identicon","generate","generator","visual","canvas"],"repository":{"type":"git","url":"git+https://github.com/emeraldpay/hashicon.git"},"contributors":[{"name":"Oori | Pluggable","url":"http://github.com/oori"},{"name":"Igor Artamonov","url":"http://github.com/splix"}],"author":{"name":"Richard Schumann","email":"schumanncombo@gmail.com","url":"http://schumanncombo.com"},"bugs":{"url":"https://github.com/emeraldpay/hashicon/issues"},"license":"Apache-2.0","readme":"Hashicon\n==========\n\n> Generates a beautiful representation of any hash.\n\nInstall\n---\n\nInstall with: \n```shell\n$ npm install @emeraldpay/hashicon --save\n```   \n\nUsage\n---\n\nSomething that you want to represent visually. For example ID of an object on the screen.\n```js\n// \nconst value = \"9dddff8f-be81-4c27-80c8-099327865f3f\";\n```\n\nCreate a `hashicon` with default params:\n```js\nimport { hashicon } from 'hashicon';\n\nconst icon = hashicon(value); // icon is a <canvas> element\nconst icon = hashicon(value, 80);  // size 80px\n```\n\nOr, pass custom [params](#params):\n```js\nconst params = {...};\nconst icon = hashicon(value, params);\n```\n\nFinally, append the newly created `hashicon` to the HTML document:\n```js\ndocument.body.appendChild(icon);\n```\n\n\nParams\n---\n> See [default params](src/params.ts)\n\nHashIcon's values are extracted from the hash, and controlled with the following parameters to manipulate the possible visual output:\n\n```js\n{\n\n// hasher for the input value. \"blake2\" is default \n// can also be \"keccak\" (or \"legacy\"), at this case add dependency to \"js-sha3\" package\nhasher: \"blake2\",\n\n// size px (HiDPI/Retina aware)\nsize: 100,\n\n// primary color range radius ( 0=red, 60=yellow, 120=green, ..., 360=red )\nhue: { min: 0, max: 360 },\n\n// saturation ( 0=grey, 100=colorfull )\nsaturation: { min: 70, max: 100 },\n\n// lightness ( 0=extremlydark, 50=optimal, 100=extremlybright )\nlightness: { min: 45, max: 65 },\n\n// hue variation for individual triangles\nvariation: { min: 7, max: 14, enabled: true },\n\n// color shift from primary hue to secondary hue ( the pattern )\nshift: { min: 60, max: 300 },\n\n// the pattern opacity\nfigurealpha: { min: .7, max: 1.2 }, // alpha\n\n// simulate a 3d cube by different areas gets some more/less light applyed \nlight:{ top:10, right:-8, left:-4, enabled: true},\n\n// Allows a custom canvas to be used to render into\ncreateCanvas: (width, height) => HTMLCanvasElement\n\n}\n```\n\n\n\n","readmeFilename":"README.md"}