Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-scanbot-image-picker
Advanced tools
Simple Image Picker with multiple selection capability
Simple plugin that implements a very straight-forward native iOS & Android Image Picker, which features:
Multiple Images Selection
Customizable Parameters
Typescript definitions
Promisified API interface
cordova plugin add cordova-plugin-scanbot-image-picker
import ScanbotImagePicker from 'cordova-plugin-scanbot-image-picker'
Opens the native single image picker, and returns the selected image file URI.
Example
const result = await ScanbotImagePicker.pickImage();
if (result.status == "OK") {
let image = result.imageFileUri;
}
Optional Parameters
export interface ScanbotImagePickerSingleConfiguration {
/**
* The quality of the images returned by the Image Picker, from 0 to 100 (default = 100)
*/
imageQuality?: number;
}
Result
export interface ScanbotImagePickerSingleResult {
status: "OK" | "CANCELED";
imageFileUri?: string;
}
Opens the multiple image picker, and returns the selected image files URIs.
Example
const result = await ScanbotImagePicker.pickImages();
if (result.status == "OK") {
let images = result.imageFilesUris;
}
Optional Parameters
export interface ScanbotImagePickerMultipleConfiguration {
/**
* Maximum selectable images. Default is 0 (unlimited).
*/
maxImages?: number;
/**
* The quality of the images returned by the Image Picker, from 0 to 100 (default = 100).
*/
imageQuality?: number;
}
Result
export interface ScanbotImagePickerMultipleResult {
status: "OK" | "CANCELED";
imageFilesUris: string[];
}
Contributions in the form of issues, pull requests and suggestions are very welcome.
This package is still in beta and should be used with that in mind.
FAQs
Simple Image Picker with multiple selection capability
The npm package cordova-plugin-scanbot-image-picker receives a total of 11 weekly downloads. As such, cordova-plugin-scanbot-image-picker popularity was classified as not popular.
We found that cordova-plugin-scanbot-image-picker 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.