@ruhiverse/force-camera 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +16 -0
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+
2
+ # @ruhiverse/force-camera
3
+
4
+ Capacitor plugin to **force camera only** (no gallery) on Android & iOS.
5
+
6
+ ## Install
7
+ ```bash
8
+ npm install @ruhiverse/force-camera
9
+ npx cap sync
10
+ ```
11
+
12
+ ## Usage
13
+ ```ts
14
+ import { ForceCamera } from '@ruhiverse/force-camera';
15
+
16
+ const photo = await ForceCamera.takePhoto();
17
+ console.log(photo.base64);
18
+ ```
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+
2
+ {
3
+ "name": "@ruhiverse/force-camera",
4
+ "version": "1.0.0",
5
+ "description": "Capacitor plugin to force camera only on Android and iOS",
6
+ "main": "dist/plugin.cjs.js",
7
+ "module": "dist/plugin.esm.js",
8
+ "types": "dist/definitions.d.ts",
9
+ "files": ["dist/", "android/", "ios/"],
10
+ "keywords": ["capacitor", "camera", "ionic", "android", "ios"],
11
+ "author": "Ruhiverse Technologies",
12
+ "license": "MIT",
13
+ "peerDependencies": {
14
+ "@capacitor/core": "^6.0.0"
15
+ }
16
+ }