{"_id":"@akumzy/electron-windows-badge","_rev":"1-00ac5d438e5569439d89dedc663b72cc","name":"@akumzy/electron-windows-badge","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@akumzy/electron-windows-badge","version":"0.0.1","description":"Electron Windows Badge plugin to access and modify the badge number of the app icon in windows.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Akumzy/electron-windows-badge.git"},"keywords":["electron","windows","badge"],"author":{"name":"Viktor Shmigol"},"license":"MIT","bugs":{"url":"https://github.com/Akumzy/electron-windows-badge/issues"},"homepage":"https://github.com/Akumzy/electron-windows-badge#readme","gitHead":"95c1212ff67375f8d605a3e2265358d210a9369c","_id":"@akumzy/electron-windows-badge@0.0.1","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-iegpyiS4GwtHIU7d6Qv8Gx5vZwLa7z4bVTCbm1uXrf/j3z46kGADI77kHH75pF9iuQFDE6LzSS4kBw0UXoyfqQ==","shasum":"57fe144328a68a6d4065fe64ec5eec751545bb88","tarball":"https://registry.npmjs.org/@akumzy/electron-windows-badge/-/electron-windows-badge-0.0.1.tgz","fileCount":6,"unpackedSize":98621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/6NNCRA9TVsSAnZWagAA4JAP/0jordivqBtQFv0e7imd\np9X0FhaiPHlWA6X8JrCJKcE46AUfkTee8aCX6LU8paUjjRpCSksQdxvSVhUq\ntDS8jzWORvmYiCrqVWq2cqhphR78ataMjKCChcQ4uZG9hPUoJF42YCiHo7KO\njORzxlb/fM8JK8jlxQkyI/8bcFFKw9ZIEf1ptgJE5KX7kbw/PglwuDi4CnVk\n6yFjboQz0V9jEPQFqSYJhlXHdYoO1kqXj91AoZGQ6VKfZuGE6NYZfQBZEgae\nZX3n+8cDNn9ybMv6YedqJX/qfKsBzt6iueyjiu3wr5eUkEXBO6+qGgIM9ULi\niNQlpy6Mo3rF91/5eeLBPSufS2ATEnAJcRNP/2Uk5ZaobewKrr3KdihN1O+J\nk/OjAkFk7IWZhKHUlGH1fck9CpjiKAXBIo5uPrzJvVhE0/rAe2Xmz7+wWWZI\nZOsLn2wgDU0XSQuJ0U9AubS9Zm5heqJ7j3HN1W2fBErl2Udx+a1gTLfph89f\nA2zolrFiw2Wa6hkZ0dpozzEksDehJr0QP9243LJ8+dJd/L/ytEZdz/YXj0Vj\nlX0jHSxq6nR6C92GTqQh2r94tk0zw63Tfrn9dtCHsInZGh77DE+Ypi5YWntG\nUwAGs/kpLocXWuU1+DJIDkzHDkqIoVcKuBFpkMFUJS7zsNLg97Y9eE9k8j0H\nMJDI\r\n=bzui\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqsBNiWTuiEiKLE3In/sqMt9MzVyKR4GXGw1aLrJ2tCgIhANPzdOo/dS4AZKiiqvh2ur9JH+lYtCgwiqVI+2Z4LMQA"}]},"maintainers":[{"name":"akumzy","email":"akumaisaacakuma@gmail.com"}],"_npmUser":{"name":"akumzy","email":"akumaisaacakuma@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-windows-badge_0.0.1_1560257356340_0.7081442531087498"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-11T12:49:16.306Z","0.0.1":"2019-06-11T12:49:16.515Z","modified":"2022-04-04T12:31:42.464Z"},"maintainers":[{"name":"akumzy","email":"akumaisaacakuma@gmail.com"}],"description":"Electron Windows Badge plugin to access and modify the badge number of the app icon in windows.","homepage":"https://github.com/Akumzy/electron-windows-badge#readme","keywords":["electron","windows","badge"],"repository":{"type":"git","url":"git+ssh://git@github.com/Akumzy/electron-windows-badge.git"},"author":{"name":"Viktor Shmigol"},"bugs":{"url":"https://github.com/Akumzy/electron-windows-badge/issues"},"license":"MIT","readme":"# Electron Windows Badge\n\nElectron Windows Badge plugin to access and modify the badge number of the app icon in windows.\n\n<p align=\"center\">\n  <img src='demo.gif' alt='demo'/>\n</p>\n\n## Installation\n  $ npm i electron-windows-badge --save\n\n## Usage\n\n    1) Require electron-windows-badge in your main process:\n        const Badge = require('electron-windows-badge');\n\n    2) Initialize new object of badge while creating window:\n        function createWindow () {\n            win = new BrowserWindow({width: 800, height: 600});\n            const badgeOptions = {}\n            new Badge(win, badgeOptions);\n        }\n\n    3) To update the badge you just need to call this(you must do it in render process):\n        ipcRenderer.sendSync('update-badge', 1);\n\n    4) To remove badge just call this(you must do it in render process):\n        ipcRenderer.sendSync('update-badge', null);\n\n## API\n\n**Badge options**\n\n| Option Name          \t| Default Value \t| Description |\n| --------------------- | ------------------| ----------- |\n| `fontColor `        \t|  'white'\t\t\t| Font color |\n| `font `     \t\t\t| '24px arial'\t\t| Font style |\n| `color `          \t| 'red'       \t\t| The color of badge |\n| `fit`             \t| true     \t\t\t| Be sure that your number will be fit into badge|\n| `decimals `         \t| 0\t\t\t\t\t| Numbers after dot (For float numbers) |\n| `radius`            \t| 8       \t\t\t| The radius of badge |\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}