Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Jetifier is an npm package used to convert Android support libraries in a project to their corresponding AndroidX libraries. This is particularly useful when migrating a React Native project or any Android project that uses older support libraries to the newer AndroidX libraries.
Convert Android support libraries to AndroidX
This command converts all the Android support libraries in your project to their corresponding AndroidX libraries. It scans through your project's node_modules and updates the necessary files.
npx jetify
Revert AndroidX libraries back to support libraries
This command reverts the changes made by Jetifier, converting AndroidX libraries back to the original Android support libraries. This can be useful if you need to roll back the migration for any reason.
npx jetify -r
The jetifier-standalone command-line utility from Android Studio, in npm package format
npm install jetifier
(or maybe npm install -g jetifier
to make it globally available)npx jetifier-standalone <your arguments here>
(use npx jetifier-standalone -h
for help)I have not altered the jetifier-standalone distribution in any way.
Other than the npm-specific instructions, consult the official jetifier documentation
Imagine you are a react-native project and one of your library dependencies converts to AndroidX. Now you need to convert your app, but react-native links source code directly and jetifier doesn't handle that.
If there was a way to take your react-native dependencies and convert them, then you could convert your app and use AndroidX dependencies.
npm install jetifier
(or use yarn, or install it globally - just install the package)npx jetify
npx react-native run-android
(this should compile and work)Please note that any time you install a new dependency, or reinstall node modules, you will need to run npx jetify
again.
Please feel free to pull requests or log issues, especially to update versions if I somehow fail to notice an update. Thanks!
1.0.0
FAQs
jetifier from Android Studio, in npm package format
The npm package jetifier receives a total of 451,003 weekly downloads. As such, jetifier popularity was classified as popular.
We found that jetifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.