open-index/open-npm huggingface dataset:
npm package: @redredgroup/prisma-enum-generator
Description: simple prisma enum generator
Author: K- SEI HOON
Latest version: 1.0.5


# prisma enum value generator

This tool allows you to get the value of the enum table from prisma.


## Installation

Install @redredgroup/prisma-enum-generator with npm OR yarn

```bash
  npm install -D @redredgroup/prisma-enum-generator
  //or
  yarn add -D @redredgroup/prisma-enum-generator
```
    
    
## Usage/Examples

Please add enum module as below.

```prisma
generator client {
  provider = "prisma-client-js"
}

generator enum {
  provider = "node node_modules/@redredgroup/prisma-enum-generator"
  output = "./generated"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}
```

```bash
//And 
npx prisma db pull
//Build
npx prisma generate
```

Done!
## Environment Variables

The two options below are optional, but can be modified if the properties below and the table names used are different.

`ENUM_PREFIX` enum table start prefix (Default: enum_*)

`ENUM_TABLE_COLUMN` Value column for table enum (Default: value)

`ENUM_FILE_NAME` File name to output | example NiceEnum Value -> NiceEnum.ts (The .ts will be added automatically.) | (Default: enum.ts)

## Warning
v0.0.1 version only supports postgres SQL relational databases. Please note.

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @redredgroup/react-browser-theme-detect
Description: You can import the current browser theme from the react.
Latest version: 1.0.2

# 🪄 React Browser Theme Detect 


[![NPM](https://nodei.co/npm/react-browser-theme-detect.png)](https://www.npmjs.com/package/react-browser-theme-detect)


# Usage
Add the dependency:

## NPM
```bash
npm install @redredgroup/react-browser-theme-detect
```

## Yarn
```bash
yarn add @redredgroup/react-browser-theme-detect
```

# Example


Import the package:

```js
import { isTheme, isThemeLight, isThemeDark } from "@redredgroup/react-browser-theme-detect";
```

Returns the String value for dark mode or light mode: 
```js
const themeString = isTheme();
// Returns "light" or "dark"
```

When the Boolean value for dark mode detection is required,

```js
const isDark = isThemeDark();
// If it is in dark mode, return true or false
```
```js
const isLight = isThemeLight();
// If it is in dark mode, return true or false
```

## 💡 Browser support

This package only works in browsers that natively support `@media (prefers-color-scheme)`, so it just returns `"light"` in unsupported browsers. [Current browser support](https://caniuse.com/#feat=prefers-color-scheme)