react-native-image-base64
Advanced tools
Comparing version 0.0.1-security to 0.1.1
@@ -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" | ||
} |
@@ -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)); | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
14852
13
0
3
2
27
0
3
2