open-index/open-npm huggingface dataset:
npm package: @jiggo/find-package-manager
Description: Find the package manager of a project
Author: github.com/khanhduy1407
Latest version: 0.0.17

# Find Package Manager Type

Find what package manager is used in the provided path.

```typescript
import { findPackageManagerType } from '@jiggo/find-package-manager'

console.log(findPackageManagerType()) // npm | yarn | pnpm | bun | unknown
// Provide a path
console.log(findPackageManagerType('../.')) // npm | yarn | pnpm | bun | unknown
// Provide a default manager
console.log(findPackageManagerType('.', 'npm')) // npm | yarn | pnpm | bun
```

Find the installation command for the package manager.

```typescript
import {  findInstallCommand } from '@jiggo/find-package-manager'

console.log(findInstallCommand()) // install | add | unknown
// Provide the manager instead of read it with default folder '.'
console.log(findInstallCommand(findPackageManagerType())) // install | add | unknown
// Provide the manager and ask to return it prefixed
console.log(findInstallCommand(findPackageManagerType(), true)) // npm install | yarn add | pnpm add | bun add | unknown unknown
```

Find the package runner command.

```typescript
import { findPackageManagerRunner } from '@jiggo/find-package-manager'

console.log(findPackageManagerRunner()) // 'yarn dlx' | 'npx' | 'bunx' | 'pnpm exec'
// Provide the path to search for
console.log(findPackageManagerRunner('../.')) // 'yarn dlx' | 'npx' | 'bunx' | 'pnpm exec'
// Provide a default manager
console.log(findPackageManagerRunner('.', 'yarn')) // 'yarn dlx' | 'npx' | 'bunx' | 'pnpm exec'
```
npm package: @jiggo/jigra-flash
Description: Switch the Flashlight / Torch of your device.
Author: NKDuy
Latest version: 6.0.3

# jigra-flash

Switch the Flashlight / Torch of your device.

## Install

```bash
npm install @jiggo/jigra-flash
npx jig sync
```

## iOS

Works out of the box

## Android

1. Declare permissions in your app's `AndroidManifest.xml` file

```xml
<!-- Permissions: Allows access to flashlight -->
<uses-permission android:name="android.permission.CAMERA" android:maxSdkVersion="23" />
<uses-permission android:name="android.permission.FLASHLIGHT" />

<!-- Actual Hardware Features Used-->
<uses-feature android:name="android.hardware.camera.flash" android:required="true" />
```

## API

<docgen-index>

* [`isAvailable()`](#isavailable)
* [`switchOn(...)`](#switchon)
* [`switchOff()`](#switchoff)
* [`isSwitchedOn()`](#isswitchedon)
* [`toggle()`](#toggle)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### isAvailable()

```typescript
isAvailable() => any
```

Checks if flashlight is available

**Returns:** <code>any</code>

--------------------


### switchOn(...)

```typescript
switchOn(options: { intensity?: number; }) => any
```

Turns the flashlight on

| Param         | Type                                 |
| ------------- | ------------------------------------ |
| **`options`** | <code>{ intensity?: number; }</code> |

**Returns:** <code>any</code>

--------------------


### switchOff()

```typescript
switchOff() => any
```

Turns the flashlight off

**Returns:** <code>any</code>

--------------------


### isSwitchedOn()

```typescript
isSwitchedOn() => any
```

Checks if the flashlight is turned on or off

**Returns:** <code>any</code>

--------------------


### toggle()

```typescript
toggle() => any
```

Toggle the flashlight

**Returns:** <code>any</code>

--------------------

</docgen-api>
npm package: @jiggo/jigra-mute
Description: Detect if the mute switch is enabled/disabled on a device
Author: NKDuy
Latest version: 6.0.3

# jigra-mute


Detect if the mute switch is enabled/disabled on a device

## Install

```bash
npm install @jiggo/jigra-mute
npx jig sync
```

## Know issue

On IOS with Xcode 14 the lib use under the hood `Mute` is not configured as Apple expect anymore, it's not the only one having the issue as you can see here :
https://github.com/CocoaPods/CocoaPods/issues/8891

Solution:
Replace this to your Podfile:
```ruby
post_install do |installer|
  assertDeploymentTarget(installer)
end
```
By
```ruby
post_install do |installer|
  assertDeploymentTarget(installer)
  installer.pods_project.targets.each do |target|
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end
```


## API

<docgen-index>

* [`isMuted()`](#ismuted)
* [Interfaces](#interfaces)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### isMuted()

```typescript
isMuted() => any
```

check if the device is muted

**Returns:** <code>any</code>

--------------------


### Interfaces


#### MuteResponse

| Prop        | Type                 |
| ----------- | -------------------- |
| **`value`** | <code>boolean</code> |

</docgen-api>
npm package: @jiggo/jigra-screen-recorder
Description: Record device's screen
Author: NKDuy
Latest version: 8.1.75

# jigra-screen-recorder

Record device's screen

## Install

```bash
npm install @jiggo/jigra-screen-recorder
npx jig sync
```

## IOS

add NSPhotoLibraryUsageDescription in your info.plist

## Android
increase project's minSdk version to 23, it's required by the dependency scrcast

Add this permissions in your `AndroidManifest.xml`
```xml
  <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" />
  <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
```


### Variables

This plugin will use the following project variables (defined in your app's `variables.gradle` file):
- `$kotlinVersion` version of `org.jetbrains.kotlin:kotlin-stdlib-jdk7` (default: `1.7.21`)

If you have compilation issue `Duplicate class androidx.lifecycle.ViewModelLazy`
i found in this the solution who worked for me:
https://stackoverflow.com/questions/73406969/duplicate-class-androidx-lifecycle-viewmodellazy-found-in-modules-lifecycle-view

Add this
```
configurations {
    all {
        exclude group: 'androidx.lifecycle', module: 'lifecycle-runtime-ktx'
        exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
    }
}
an
```
line 2 in file `android/app/build.gradle`

## Configuration

No configuration required for this plugin.

## API

<docgen-index>

* [`start()`](#start)
* [`stop()`](#stop)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### start()

```typescript
start() => any
```

start the recording

**Returns:** <code>any</code>

--------------------


### stop()

```typescript
stop() => any
```

stop the recording

**Returns:** <code>any</code>

--------------------

</docgen-api>