
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
cap-set-version-from-package
Advanced tools
cap-set-version-from-package is a simple CLI for updating Android or iOS version with package.json version
cap-set-version-from-package CLI is a simple utility for updating your Android or iOS build no. and version by using package.json while creating Android or iOS App using Capacitor. Very Useful in Github action for capacitor.
npm install cap-set-version-from-package
Install it in your capacitor/ionic project
To use this package just use the below command
cap-set-version-from-package
# OR use short form
csvfp
If you are using npx then no need to install, directly use this
npx cap-set-version-from-package
You must have package.json file with update version. You may have android or ios directory added to your capacitor project using:
# to install capacitor Android dependency
npm install @capacitor/android @capacitor/android
# to add Android directory
npx cap add android
# to add ios directory
npx cap add ios
# to clone your dist to android
npx cap sync
Incase if any directory is missing, still it will work on existing directory with a WARNING. Once done. Now you are ready to use cap-set-version-from-package
If Android folder is getting created or available in custom location.
npm
cap-set-version-from-package --androidPath=../Project2/android
# OR use short form
csvfp -a=../Project2/android
npx
npx cap-set-version-from-package -a=../Project2/android
If ios folder is getting created or available in custom location.
npm
cap-set-version-from-package --iosPath=../Project2/ios
# OR use short form
csvfp -i=../Project2/android
npx
npx cap-set-version-from-package -i=../Project2/ios
If package.json is available in custom location or you want use some custom json file.
npm
cap-set-version-from-package --jsonPath=./Project2/custom.json
# OR use short form
csvfp -j=./Project2/custom.json
npx
npx cap-set-version-from-package --jsonPath=../Project2/package.json
If custom json file contain custom key which contains version.
npm
cap-set-version-from-package --versionKey=proj-version
# OR use short form
csvfp -k=proj-version
npx
npx cap-set-version-from-package -j=./Project2/custom.json -k=versionName
To install package
npm install
To use locally in system
npm i -g
To remove it locally
npm rm -g
FAQs
cap-set-version-from-package is a simple CLI for updating Android or iOS version with package.json version
The npm package cap-set-version-from-package receives a total of 1 weekly downloads. As such, cap-set-version-from-package popularity was classified as not popular.
We found that cap-set-version-from-package 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
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.