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.
react-native-image-base64
Advanced tools
This repo is a working rewrite of this abandoned library. It provides a very simple way to convert an image to a base64 string.
If you encounter OOM
errors on old android devices, make sure you optimize the image's size before you convert it.
Indeed working with big images on Android might cause very high memory usage.
npm install react-native-image-base64 --save
or
yarn add react-native-image-base64
$ react-native link react-native-image-base64
import ImgToBase64 from 'react-native-image-base64';
ImgToBase64.getBase64String('file://youfileurl')
.then(base64String => doSomethingWith(base64String))
.catch(err => doSomethingWith(err));
FAQs
Convert image to base64
We found that react-native-image-base64 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 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.