Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-icon-cli
Advanced tools
Automatic 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 and Android).
$ sudo npm install cordova-icon-cli -g
Create an icon.png
file in the root folder of your cordova project and run:
$ cordova-icon
To specify a custom splash image or config file use it like this:
$ cordova-icon --icon path/to/icon --config /path/to/config
For optimal results, your file has to be square, and at least 180*180px. To be future-proof, since the generated file dimensions are going to evolve, you should probably use 512*512px or 1024*1024px.
Since the execution of cordova-icon is pretty fast, you can add it as a cordova-cli hook to execute before every build. To create a new hook, go to your cordova project and run:
$ mkdir hooks/after_prepare
$ vi hooks/after_prepare/cordova-icon.sh
Paste the following into the hook script:
#!/bin/bash
cordova-icon
Then give the script +x permission:
$ chmod +x hooks/after_prepare/cordova-icon.sh
That's it. Now every time you cordova build
, the icons will be auto generated.
Install on a Mac:
$ brew install imagemagick
On windows see http://www.imagemagick.org/script/binary-releases.php#windows
check out cordova-splash
MIT
FAQs
Automatic icon resizing for Cordova
The npm package cordova-icon-cli receives a total of 0 weekly downloads. As such, cordova-icon-cli popularity was classified as not popular.
We found that cordova-icon-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.