Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-image-base64

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-image-base64 - npm Package Compare versions

Comparing version 0.0.1-security to 0.1.1

.gitattributes

16

package.json

@@ -0,6 +1,16 @@

{
"name": "react-native-image-base64",
"version": "0.0.1-security",
"description": "security holding package",
"repository": "npm/security-holder"
"version": "0.1.1",
"description": "Convert image to base64",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"react-native",
"base64"
],
"author": "Snapp",
"license": "MIT"
}

32

README.md

@@ -1,9 +0,27 @@

# Security holding package
This package name is not currently in use, but was formerly occupied
by another package. To avoid malicious use, npm is hanging on to the
package name, but loosely, and we'll probably give it to you if you
want it.
# react-native-image-base64
You may adopt this package by contacting support@npmjs.com and
requesting the name.
This repo is a working rewrite of [this](https://github.com/xfumihiro/react-native-image-to-base64) abandonned 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.
## Getting started
`npm install react-native-image-base64 --save`
or
`yarn add react-native-image-base64`
## Installation
`$ react-native link react-native-image-base64`
## Usage
```javascript
import ImgToBase64 from 'react-native-image-base64';
ImgToBase64.getBase64String('file://youfileurl', (err, base64string) => doSomethingWith(base64string));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc