{"_id":"@blvz/cordova-icon","_rev":"1-8a92847f9c3a52a71365905f1096b8af","name":"@blvz/cordova-icon","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@blvz/cordova-icon","version":"2.0.0","description":"Automatic icon resizing for Cordova","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/blvz/cordova-icon.git"},"keywords":["cordova","icon","resize","sharp"],"author":{"name":"Rafael Belvederese","email":"rafael@blvz.im"},"license":"MIT","bugs":{"url":"https://github.com/blvz/cordova-icon/issues"},"homepage":"https://github.com/blvz/cordova-icon","dependencies":{"colors":"^0.6.2","fs-extra":"^0.30.0","minimist":"^1.2.0","q":"^1.0.1","q-map":"^0.2.0","sharp":"^0.23.1","underscore":"^1.6.0","xml2js":"^0.4.3"},"bin":{"cordova-icon":"bin/cordova-icon"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 Alex Disler\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@blvz/cordova-icon@2.0.0","dist":{"shasum":"35021e4be65c2c8a5045b798d0d6a1d43530a8db","integrity":"sha512-tWBrEB38zbcb1rkV+Paq5YfioUpBChFyZN+nmOIk4bQCm9Iy9nTWGZ7oV8OXgOqtUDcLBNpfge3zcJk/iShXyA==","tarball":"https://registry.npmjs.org/@blvz/cordova-icon/-/cordova-icon-2.0.0.tgz","fileCount":13,"unpackedSize":28077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnsiOCRA9TVsSAnZWagAAvD8P/09qz2yzVRZzNMR2C4LZ\nT+BhNsNjsWdLA2xcnwqEg6PgCG5phQnT1K1K5uW21YwwHrS1ngMbEvp8MlZX\nBvDqNXd43k0+u2IkjSuGQ+ibQlKwcnEylgZmlrX4jSbzuhLb08Tb7WLSax8V\n49TzpJD0iXeyy3LoSZc+imPoRM/2F2zbP9FLsNfnwVoMLcQMqcDXndM4JHNX\nKwst6YjIOkBd5oJnsxB9me8Kira1vxmM4mgBDiERXq/eUJm6jmlJadrtuRgr\nS13haPZ0Xxix9jl7bPGjqhJpT9GgEu6WEXKu6C6aD3B3INi4REDf2Bdrrn3H\n8A6BvqH7agSkhjTktMfbf59oYVYrnr9zfZ97Nbu0aYyOKaAEp4fk5+mVeBjH\nJ19nLqO6SoqkmpeW8sbigjG4OqfZc9oOqRmXKGCXfQOP18k8Nik+YDwU8QYm\nf9NJr6nnaDocFPskGpPfWLtS85Fnac0Tn6M+N2w3OkYy6/wsBWVg6TLiPz0q\n1dRBFYpzuKnhBVPNxvWTE07iT4od1atzBSL2EuGV/ryUljR5RD0QNKcRgXLL\nZeVkP56xJpeRC+UHFI4fEC2Od6L0uqpYeSMJNVd9Dgmcu8Rrpx59bqs5rPW2\nJ6Z3CwlzqO1701YeOolpjK4QfmAdX9WNYUYtlOtMRLp5TueDUskkENjOsz/E\nLyCW\r\n=mfrY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDV333CYwXrP/pUOIBbYezFUK8FOpNTJRzBT+bhgT22IQIgP60Rpw5qY9+f8qQP3W0NqHcJFUFjQllgOEv65A1aCCw="}]},"maintainers":[{"name":"blvz","email":"rafael@blvz.im"}],"_npmUser":{"name":"blvz","email":"rafael@blvz.im"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-icon_2.0.0_1570687117875_0.5950674013218475"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-10T05:58:37.653Z","2.0.0":"2019-10-10T05:58:37.982Z","modified":"2022-04-04T19:51:20.269Z"},"maintainers":[{"name":"blvz","email":"rafael@blvz.im"}],"description":"Automatic icon resizing for Cordova","homepage":"https://github.com/blvz/cordova-icon","keywords":["cordova","icon","resize","sharp"],"repository":{"type":"git","url":"git://github.com/blvz/cordova-icon.git"},"author":{"name":"Rafael Belvederese","email":"rafael@blvz.im"},"bugs":{"url":"https://github.com/blvz/cordova-icon/issues"},"license":"MIT","readme":"# @blvz/cordova-icon\n\n[cordova-icon](https://github.com/AlexDisler/cordova-icon) fork + updates.\nUses [sharp](https://github.com/lovell/sharp/) instead of ImageMagick.\n\n<img src=\"cordova-icon-resize.png\"/>\n\nAutomatic icon resizing for Cordova. Create an icon in the root folder of your Cordova project and use cordova-icon to automatically resize and copy it for all the platforms your project supports (currenty works with iOS, Android, Windows 10 and OSX).\n\n### Installation\n\n```bash\n$ yarn add --dev '@blvz/cordova-icon'\n```\n\n### Requirements\n\n- At least one platform was added to your project ([cordova platforms docs](http://cordova.apache.org/docs/en/edge/guide_platforms_index.md.html#Platform%20Guides))\n- Cordova's config.xml file must exist in the root folder ([cordova config.xml docs](http://cordova.apache.org/docs/en/edge/config_ref_index.md.html#The%20config.xml%20File))\n\n### Usage\n\nCreate an `icon.png` file in the root folder of your cordova project.\nYou can provide a platform-specific icon by naming it `icon-[platform].png`\n(e.g `icon-android.png`, `icon-ios.png`).\nThen run:\n\n     $ yarn exec cordova-icon\n\nYou also can specify manually a location for your `config.xml` or `icon.png`:\n\n     $ yarn exec cordova-icon --config=config.xml --icon=icon.png\n\nFor good results, your file should be:\n\n- square\n- for Android and iOS, at least 1024\\*1024px\n- for Windows, at least 1240\\*1240px\n\n#### Notes:\n\n- Your `config.ml` file will not be updated by the tool (because images are automatically created in the good folders)\n- Therefore, in your `config.xml`, be sure to remove all lines looking like `<icon src=\"res/android/ldpi.png\" density=\"ldpi\" />`\n\n### Creating a cordova-cli hook\n\nSince the execution of cordova-icon is pretty fast, you can add it as a cordova-cli hook to execute before every build.\nTo create a new hook, go to your cordova project and run:\n\n    $ mkdir hooks/after_prepare\n    $ vi hooks/after_prepare/cordova-icon.sh\n\nPaste the following into the hook script:\n\n    #!/bin/bash\n    yarn exec cordova-icon\n\nThen give the script +x permission:\n\n    $ chmod +x hooks/after_prepare/cordova-icon.sh\n\nThat's it. Now every time you `cordova build`, the icons will be auto generated.\n\n### Splash screens\n\nCheck out [cordova-splash](https://github.com/blvz/cordova-splash)\n\n### License\n\nMIT\n","readmeFilename":"README.md"}