
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@wisdomgarden/media-picker
Advanced tools
This is a Capacitor 2 plugin that provides a Media Picker for selecting images and videos.
This is a Capacitor 2 plugin that provides a Media Picker for selecting images and videos.
npm install @wisdomgarden/media-picker
npx cap sync
or
yarn install @wisdomgarden/media-picker
npx cap sync
// use in web
import { MediaPicker } from '@wisdomgarden/media-picker';
// use in native
import { Plugins } from '@capacitor/core';
const { MediaPicker } = Plugins;
var ret = await MediaPicker.checkAvailability();
console.log('is available', ret.isAvailable);
ret = await MediaPicker.pickMedias({
type: MediaPicker.MEDIA_TYPE.ImageOAndVideo,
maximum: 2
})
if(ret && ret.uris) {
console.log('picked medias', ret.uris);
}
checkAvailability(): Promise<AvailabilityState>;
Get the availability state of the media picker.
Returns: Promise<AvailabilityState>
| Property | Type | Description |
|---|---|---|
| isAvailable | boolean | Whether the media picker is available |
pickMedias(options: {type: PICK_MEDIA_TYPE, maximum?: number}): Promise<PickMediasResult>;
Pick multiple medias.
| Params | Type | Description | required | default |
|---|---|---|---|---|
type | PICK_MEDIA_TYPE | The type of media to pick | true | |
maximum | number | The maximum number of media to pick | false | 1 |
Returns: Promise<PickMediasResult>
| Prop | Type | Description |
|---|---|---|
isAvailable | boolean | Whether the media picker is available |
| Prop | Type | Description |
|---|---|---|
ImageOnly | string | Only images |
VideoOnly | string | Only videos |
ImageOAndVideo | string | Images and videos |
| Prop | Type | Description |
|---|---|---|
uris | string[] | The uris of the picked media or undefined if no media is picked |
FAQs
This is a Capacitor 2 plugin that provides a Media Picker for selecting images and videos.
The npm package @wisdomgarden/media-picker receives a total of 2 weekly downloads. As such, @wisdomgarden/media-picker popularity was classified as not popular.
We found that @wisdomgarden/media-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.