open-index/open-npm huggingface dataset:
npm package: @sgftech/plugin-multi-country-select
Description: A strapi custom field for selecting multiple countries based on the ISO 3166-1 country code standard.
Author: Zaydme
Latest version: 1.0.2

# Strapi plugin multi-country-select

A strapi custom field for selecting multiple countries based on the ISO 3166-1 country code standard.

## Installation

To install this plugin, you need to add an NPM dependency to your Strapi application:

```
# Using Yarn
yarn add strapi-plugin-multi-country-select

# Or using NPM
npm install strapi-plugin-multi-country-select
```

Then, you'll need to build your admin panel:

```
# Using Yarn
yarn build

# Or using NPM
npm run build
```


## Usage

After installation you will find the multi-country-select at the custom fields section of the content-type builder.

![multi-country select screenshot](./screenshots/multi-country-select-plugin.png)

Now you can select multiple counties from the list. The Alpha-2 code of the selected countries is stored as an array in the database.

![multi-country select screenshot](./screenshots/multi-country-select.png)

You can also add more options to the select field.
![multi-country select screenshot](./screenshots/multi-country-select-options.png)

If you add an option with the the value "ALL" (and any label), once you select this option all the countries will be deselected and the options will be disabled.

`All countries:ALL`

![multi-country select screenshot](./screenshots/multi-country-select-all.png)

## Related

- [i18n-iso-countries](https://github.com/michaelwittig/node-i18n-iso-countries) - i18n for ISO 3166-1 country codes

- Forked and modified from [strapi-plugin-country-select](https://github.com/ChrisEbert/strapi-plugin-country-select)
npm package: @sgftech/strapi-plugin-medusajs
Description: This is the description of the plugin.
Author: A Strapi developer
Latest version: 0.0.0

# Strapi plugin strapi-plugin-medusajs

A quick description of strapi-plugin-medusajs.

## Purpose

This plugin is to quickly connect strapi cms with the medusa, to power two awesome open source system,
This plugin decouples bootstrapping and configuration, allowing you greate flexibility. 

## How to use it 

On medusa you need to install the medusa-plugin-strapi @ sgftech/medusa-plugin-strapi, and follow the setup instructions here[https://docs.medusajs.com/add-plugins/strapi/]

On strap in you need to install the strapi-plugin-medusajs
You don't need to create an admin user, the plugin will create a default admin user for you if you don't have one already. You can configure the admin like any other plugin, via environment variables.
npm package: @sgftech/strapi-plugin-multi-country-select
Description: A strapi custom field for selecting multiple countries based on the ISO 3166-1 country code standard.
Author: Zaydme
Latest version: 1.0.1

# Strapi plugin multi-country-select

A strapi custom field for selecting multiple countries based on the ISO 3166-1 country code standard.

## Installation

To install this plugin, you need to add an NPM dependency to your Strapi application:

```
# Using Yarn
yarn add strapi-plugin-multi-country-select

# Or using NPM
npm install strapi-plugin-multi-country-select
```

Then, you'll need to build your admin panel:

```
# Using Yarn
yarn build

# Or using NPM
npm run build
```


## Usage

After installation you will find the multi-country-select at the custom fields section of the content-type builder.

![multi-country select screenshot](./screenshots/multi-country-select-plugin.png)

Now you can select multiple counties from the list. The Alpha-2 code of the selected countries is stored as an array in the database.

![multi-country select screenshot](./screenshots/multi-country-select.png)

You can also add more options to the select field.
![multi-country select screenshot](./screenshots/multi-country-select-options.png)

If you add an option with the the value "ALL" (and any label), once you select this option all the countries will be deselected and the options will be disabled.

`All countries:ALL`

![multi-country select screenshot](./screenshots/multi-country-select-all.png)

## Related

- [i18n-iso-countries](https://github.com/michaelwittig/node-i18n-iso-countries) - i18n for ISO 3166-1 country codes

- Forked and modified from [strapi-plugin-country-select](https://github.com/ChrisEbert/strapi-plugin-country-select)
npm package: @sgg10/firestore-backup
Description: Library to import and export firestore collections in any project
Author: sgg10
Latest version: 1.0.0

# Firestore Backup
Library to import and export firestore collections in any project.

## Installation
Install using [npm](https://www.npmjs.com/)

    npm install @sgg10/firestore-backup
    
## Get Credentials from Firebase
You need to generate a private key from your Project Setting > Service Accounts
and get the databaseURL to initializate.

## Usage
To import library and create a new object

    import firestoreBackup from '@sgg10/firestore-backup'
    import serviceAccount from 'serviceAccount.json'
    
    let fsb = new firestoreBackup(serviceAccount, 'your_database_url')
   
### Export Firestore data
To create a complete backup for  databse, use exportAll method
   

    fsb.exportAll()

This method will return a Promise with all data from database, if you want save data a local file, you can use a saveFile method.

    fsb.exportAll().then( result => fsb.saveFile(result, { name: 'All', path: 'optional_path' }))


To create a custom backup, use exportCustom method. This method recive an Array with name of collections do you want to add to backup.

    fsb.exportCustom(['exaple1', 'example2']).then( result => fsb.saveFile(result))

### Import Firestore data
To import data from any object to firestore, use importData method

    const obj = {
	    collection1: {
		    12SWQ55ED: {
			    name: 'example name',
			    phone: 123456789 
		    },
		    //... 
	    },
	    //...
    }
     
    fsb.importData(obj)

To import data from JSON file

    fsb.importDataFromFile(`${__dirname}/backup.json`).then(result => console.log(result))
npm package: @sgguo/rapipdf
Description: RapiPdf - Generate PDF from Open API spec
Author: Mrinmoy Majumdar
Latest version: 2.2.1

<img alt="MrinDoc logo" src="https://github.com/mrin9/RapiPdf/blob/master/logo.png" width="60px" />


<p align="center">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square"/>
    <img src="https://img.shields.io/github/size/mrin9/rapipdf/dist/rapipdf-min.js.svg?colorB=blue&label=minified&style=flat-square">
    <img src="https://img.shields.io/github/size/mrin9/rapipdf/dist/rapipdf-min.js.gz.svg?colorB=blue&label=zip&style=flat-square">
</p>

# RapiPDF
Custom element for Open-API to PDF generation

## Features
- Supports Swagger 2.0 and OpenAPI 3.0
- Generate PDF using Web-Component
- Works with any framework or with no framework
- Plenty of customizing options, including selection of brand colors
- Supported on Chrome, FireFox and Safari. (Not yet tested on Edge)

## Documentation
[Check out the usage and examples](https://mrin9.github.io/RapiPdf/)

## Build Process
We recommend `yarn` over `npm` as we use yarn [resolutions](https://yarnpkg.com/lang/en/docs/selective-version-resolutions/) to keep the bundle size smaller. As of this writing this feature is not supported in npm natively
```bash
# Clone / Download the project then
yarn install

# build will generate rapidoc-min.js, this is the only file you will need.
# use it in the script tag of your html <script type="text/javascript" src="rapidoc-min.js"></script></body>
yarn build

# for developement use yarn serve (this will start an webserver at port 8080, then navigate to localhost:8080)
yarn serve

# alternative to yarn serve: (this will start an webserver at port 8080 listening to all adapters)
yarn serve-everyone
```
npm package: @sgguo/rapipdf-cli
Description: Unofficial CLI for RapiPDF ===========
Author: Jan Beckmann @kingjan1999
Latest version: 0.0.9

Unofficial CLI for RapiPDF
===========

[![Version](https://img.shields.io/npm/v/@kingjan1999/rapipdf-cli.svg)](https://www.npmjs.com/package/@kingjan1999/rapipdf-cli)
[![Downloads/week](https://img.shields.io/npm/dw/@kingjan1999/rapipdf-cli.svg)](https://npmjs.org/package/@kingjan1999/rapipdf-cli)
[![License](https://img.shields.io/npm/l/@kingjan1999/rapipdf-cli.svg)](https://github.com/kingjan1999/rapipdf-cli/blob/master/package.json)

This project is an adaption of [RapiPDF](https://github.com/mrin9/RapiPdf) providing a CLI for generating PDFs based on OpenAPI specs.
Apart from just providing an CLI, some additional configuration options (e.g. adding a logo) are provided.

<!-- toc -->
* [Usage](#usage)
* [Configuration File](#configuration-file)
* [Example Usage](#example-usage)
<!-- tocstop -->
* [Usage](#usage)
* [Configuration File](#configuration-file)
<!-- tocstop -->

# Usage
```sh-session
$ npm install -g @kingjan1999/rapipdf-cli
$ rapipdf (-v|--version|version)
@kingjan1999/rapipdf-cli/0.0.3 linux-x64 node-v14.15.1
$ rapipdf --help [COMMAND]
USAGE
  $ rapipdf SpecFile # can be either the path to a local file or a remote url (both .yaml and .json are supported)

OPTIONS

  -c, --configFile=configFile # pass the path to the configuration file (optional, see below)
  -o, --outputFile=outputFile # pass the path to the output file (defaults to "api.pdf")
```


# Configuration File

You can pass a configuration file to the CLI (using the `-c` parameter) overriding the defaults. An example is provided in this repository (`rapipdf.config.example-de.json`).

# Example Usage

Calling

```sh-session
$ rapipdf -o petstore.json.pdf -c config.json  petstore.json
```

in the `examples/` folder results in the uploaded [petstore.json.pdf](https://github.com/kingjan1999/rapipdf-cli/raw/master/examples/petstore.json.pdf).
npm package: @sgguo/superagent-interceptor
Description: Add funcitons as interceptors in superagent.
Author: Guo Shugang
Latest version: 1.0.1

# superagent-intercept

Add interceptors that will be called during end() e.g. for handling error conditions without having the same code all over the place.

## Support

Please consider supporting the project by starring it on GitHub :)

https://github.com/sgguo/superagent-interceptor

inspired by [superagent intercept](https://github.com/codesuki/superagent-intercept)

## Install

```
npm install @sgguo/superagent-interceptor
```

## Example

```javascript
const intercept = require('@sgguo/superagent-interceptor');

let endIntercept = intercept.endInterceptor((err, res) => {
	if (res.status == 401) {
	   // route to login
	}
});

let beforeSendInterceptor = intercept.beforeSendInterceptor((request) => {
	console.log('before send request');
});

request.get('/api/something/' + someId).use(beforeSendInterceptor).use(endIntercept).end((err, res) {
	// AuthIntercept will be called here.
	// ... code ...
});
```
npm package: @sghere/is-active
Description: This package is designed to be used in a React application to monitor user activity and trigger a callback function when the user has been inactive for a specified period of time.
Author: Shubham Mahesh Gaikwad
Latest version: 1.0.3

# @sghere/is-active

The `@sghere/is-active` package provides a React component called `IsActive` that allows you to monitor user activity and trigger a callback function when the user has been inactive for a specified period of time.

## Installation

Install the package using npm:

npm install @sghere/is-active

## Usage

Import the `IsActive` component into your React application and include it in your JSX markup. The component accepts two props: `timer` and `callback`.

```jsx
import React from "react";
import IsActive from "@sghere/is-active";

const Layout = () => {
  const handleInactive = () => {
    // Perform actions when user becomes inactive
    console.log("User is inactive");
    // Additional code...
  };

  return (
    <div>
      {/* Other components */}
      <IsActive timer={60000} callback={handleInactive} />
    </div>
  );
};

export default Layout;
```

In the example above, the IsActive component is used within the Layout component. The timer prop is set to 60000 milliseconds (1 minute), indicating that the user will be considered inactive if there is no mouse movement within this time frame. The callback prop is set to the handleInactive function, which will be executed when the user becomes inactive.

## Functionality

The IsActive component sets up an event listener for the mousemove event using the useEffect hook. This event listener detects when the user moves their mouse. If there is no mouse movement for the specified timer duration, the component considers the user inactive and triggers the callback function.

After executing the callback function, the current timestamp is stored in the browser's localStorage under the key "isactivestate," indicating an update in user activity.

When the component unmounts, the event listener is removed to clean up resources.

## License

This package is MIT licensed.
npm package: @sgiath/react-scripts
Description: Configuration and scripts for Create React App by Sgiath.
Author: sgiath
Latest version: 0.0.1

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
npm package: @sgits/csv-downloader
Description: ## Installation
Author: Martin Klasen
Latest version: 0.1.1

# csv-downloader

## Installation

To install this library, run:

```bash
$npm install @sgits/csv-downloader --save
```

## Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

```bash
$npm install @sgits/csv-downloader
```

and then from your Angular `AppModule` or component:

```typescript
// Import your service
import { CsvDownloaderService } from '@sgits/csv-downloader';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule
  ],
  // Specify the service as a provider
  providers: [CsvDownloaderService],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

## License

Supergroup © [Martin Klasen](mailto:martin.klasen@sgits.co.za)
npm package: @sgjobfit/common
Description: ### Install
Author: lequocduyquang
Latest version: 1.0.6

# @Sgjobfit

### Install

```
npm install @sgjobfit/common
```

or

```
yarn add @sgjobfit/common
```

### How to use

```
const express = require('express');
const app = express();
const { errorHandler, NotFoundError } = require('@sgjobfit/common');

app.all('*', (req, res, next) => {
  throw new NotFoundError();
});

app.use(errorHandler);

const PORT = 3000;
app.listen(PORT, () => {
  console.log(`App is running on port ${PORT}`);
});
```

### Authors

* **lequocduyquang** 

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
npm package: @sgjy/s-ui
Description: A React component library
Author: sgjy
Latest version: 0.0.13

# S-UI React 组件库

一个基于 React 的组件库，提供了丰富的 UI 组件供开发者使用。

## 安装

```bash
npm install @sgjy/s-ui
```

或

```bash
yarn add @sgjy/s-ui
```

## 使用方式

### 方式一：按需引入（推荐）

```jsx
import { Button, Input } from '@sgjy/s-ui';
import '@sgjy/s-ui/dist/style.css';

function App() {
  return (
    <div>
      <Button type="primary">按钮</Button>
      <Input placeholder="请输入内容" />
    </div>
  );
}
```

### 方式二：引入单个组件

```jsx
import Button from '@sgjy/s-ui/components/Button';
import '@sgjy/s-ui/dist/style.css';

function App() {
  return (
    <div>
      <Button type="primary">按钮</Button>
    </div>
  );
}
```

## 构建

如果你想要构建这个项目，可以运行以下命令：

```bash
npm run build
```

## 开发

启动开发服务器：

```bash
npm run dev
```

## 组件列表

- Button 按钮
- Input 输入框
- Form 表单
- Table 表格
- Modal 对话框
- ...以及其他更多组件

## 许可证

MIT
npm package: @sglara/cn
Description: A utility function that combines the power of `clsx` and `tailwind-merge` for seamless management of Tailwind CSS class names.
Author: Steven Lara
Latest version: 1.0.0

# cn - A Utility for Tailwind CSS Class Name Management

A utility function that combines the power of `clsx` and `tailwind-merge` for seamless management of Tailwind CSS class names.

![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white)
![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?logo=javascript&logoColor=black)
![TailwindCSS](https://img.shields.io/badge/TailwindCSS-06B6D4?logo=tailwindcss&logoColor=white)

## Features

- Merges Tailwind CSS class names with priority management.
- Supports conditional class names with the flexibility of `clsx`.
- Simplifies dynamic class name handling in TypeScript and JavaScript projects.

## Installation

Install the package via npm:

```bash
npm install @sglara/cn
```

## Usage

### Import the Function

```typescript
import { cn } from "@sglara/cn";
```

### Examples

#### Basic Usage

```typescript
const className = cn("bg-red-500", "text-white", "bg-blue-500");
console.log(className); // "text-white bg-blue-500"
```

#### Conditional Classes

```typescript
const isActive = true;
const className = cn("bg-red-500", {
  "text-white": isActive,
  "text-gray-500": !isActive,
});
console.log(className); // "bg-red-500 text-white"
```

#### Merging Tailwind Classes

```typescript
const className = cn("p-4", "p-2");
console.log(className); // "p-2"
```

#### Using with Arrays

```typescript
const className = cn("bg-red-500", ["text-white", "rounded-lg"]);
console.log(className); // "bg-red-500 text-white rounded-lg"
```

### TypeScript Support

The function fully supports TypeScript with type definitions for safe and predictable usage:

```typescript
const className = cn("bg-red-500", { "text-white": true, hidden: false });
// TypeScript will catch errors for invalid inputs.
```

## Why Use This Package?

- **Simplify Tailwind CSS Class Management**: Avoid repetitive and conflicting class name issues.
- **Typed Support**: Works seamlessly with both JavaScript and TypeScript.
- **Lightweight**: Combines two efficient libraries (`clsx` and `tailwind-merge`) into one handy utility.

## Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

## License

This project is licensed under the MIT License.
npm package: @sglara/ms-parser
Description: A lightweight TypeScript package for parsing time durations into milliseconds
Author: Steven Lara
Latest version: 0.0.1

# ms-parser

A lightweight TypeScript package for parsing time durations into milliseconds.

## Installation

```bash
npm install ms-parser
# or
yarn add ms-parser
# or
pnpm add ms-parser
```

## Usage

```typescript
import { ms } from "ms-parser";

// Parse single durations
ms("1m"); // 60000
ms("1.5h"); // 5400000

// Parse combined durations
ms("1h30m"); // 5400000
ms("2m15s"); // 135000

// Invalid input returns NaN
ms("abc"); // NaN
```

## Supported Units

- `ms` - milliseconds
- `s` - seconds
- `m` - minutes
- `h` - hours
- `d` - days

## Features

- TypeScript support
- Zero dependencies
- Handles decimal values
- Supports combined durations
- Returns NaN for invalid input

## License

MIT
npm package: @sglkc/kuroshiro-analyzer-kuromoji
Description: Forked version of kuroshiro-analyzer-kuromoji with TypeScript support and better compatibility for browsers
Author: sglkc
Latest version: 1.0.1

# kuroshiro-analyzer-kuromoji
 
[![Build Status](https://travis-ci.com/hexenq/kuroshiro-analyzer-kuromoji.svg?branch=master)](https://travis-ci.org/hexenq/kuroshiro-analyzer-kuromoji)
[![Coverage Status](https://coveralls.io/repos/github/hexenq/kuroshiro-analyzer-kuromoji/badge.svg?branch=master)](https://coveralls.io/github/hexenq/kuroshiro-analyzer-kuromoji?branch=master)
[![npm version](https://badge.fury.io/js/kuroshiro-analyzer-kuromoji.svg)](http://badge.fury.io/js/kuroshiro-analyzer-kuromoji)

<table>
    <tr>
        <td>Package</td>
        <td colspan=2>kuroshiro-analyzer-kuromoji</td>
    </tr>
    <tr>
        <td>Description</td>
        <td colspan=2>Kuromoji morphological analyzer for <a href="https://github.com/hexenq/kuroshiro">kuroshiro</a>.</td>
    </tr>
    <tr>
        <td rowspan=2>Compatibility</td>
        <td>Node</td>
        <td>✓ (>=6)</td>
    </tr>
    <tr>
        <td>Browser</td>
        <td>✓</td>
    </tr>
</table>

## Install
```sh
$ npm install kuroshiro-analyzer-kuromoji
```
*For legacy frontend workflows, you could include `dist/kuroshiro-analyzer-kuromoji.min.js` in your page and the exported name is `KuromojiAnalyzer`. (you may first build it from source with `npm run build` after `npm install`)*

## Usage with kuroshiro
### Configure analyzer
This analyzer utilizes [kuromoji.js](https://github.com/takuyaa/kuromoji.js). 

You could specify the path of your dictionary files with `dictPath` param. 

```js
import KuromojiAnalyzer from "kuroshiro-analyzer-kuromoji";

const analyzer = new KuromojiAnalyzer();

await kuroshiro.init(analyzer);
```

### Initialization Parameters
__Example:__
```js
const analyzer = new KuromojiAnalyzer({
    dictPath: "url/to/dictionary_files"
});
```
- `dictPath`: *Optional* Path of the dictionary files
npm package: @sgnl-pro/react-tree
Description: A tree view component for React
Author: Alexey L.
Latest version: 0.3.0

# @sgnl-pro/react-tree

> A tree view component for React.

## Installation
### NPM
```sh
npm install --save @sgnl-pro/react-tree
```

**or**

### Yarn
```sh
yarn add @sgnl-pro/react-tree
```

## License
MIT
npm package: @sgnl-pro/ui
Description: React-based SIGNAL design system
Author: signal
Latest version: 0.2.34

# sgnl-ui

> React-based SIGNAL design system.

[![NPM](https://img.shields.io/npm/v/sgnl-ui.svg)](https://www.npmjs.com/package/sgnl-ui)

## Install

```bash
npm install --save sgnl-ui
```

## Usage example

```tsx
import React from 'react'
import { Button } from 'sgnl-ui'

class App extends React.Component {
  render () {
    return (
      <Button title="Accept" size="lg" />
    )
  }
}
```

## License

MIT
npm package: @sgohlke/graphql-server-base
Description: Base package for @dreamit/graphql-server
Author: Stefan Gohlke
Latest version: 2.1.2
Deprecated: Use @dreamit/graphql-server-base instead

# graphql-server-base

Base package for [@dreamit/graphql-server][1]. Contains constants and interfaces that can be used in graphql-server and extensions.

## Installation

```sh
npm install --save @sgohlke/graphql-server-base
```

TypeScript declarations are provided within the project.

**Note:**

If you want to publish your own extension it is advised to install **@sgohlke/graphql-server-base** as **peerDependency**. This way you can define which version range your extension supports and it might be usable in multiple major versions of [@dreamit/graphql-server][1] (if they depend on the same range of this base module).
Example in package.json for peerDependencies:
```json
"peerDependencies": {
    "@sgohlke/graphql-server-base": "^1.0.0"
  }
```

## Compatibility

**@sgohlke/graphql-server-base** is compatible with [graphql-js][2] version ^16.0.0. For compatibility with [@dreamit/graphql-server][1] please check **Compatibility** section in the **graphql-server** readme.

## Content of this base module

All content of this module is exported in the root **index.ts** file. This means you can import it using an import statement like
```typescript
import {MetricsClient} from '@sgohlke/graphql-server-base'
```

### Constants

In **error/ErrorNameConstants.ts** constants to identify/display errors are provided. In **request/ContentType.ts** the content type used by [@dreamit/graphql-server][1] is available as enum.

### Interfaces

Interfaces for creating your own **Logger** or **MetricsClient** are available in this module. Additionally, the interfaces used by [@dreamit/graphql-server][1] for handling requests and responses are provided.

## Example

The following example shows how a **NoLogger** implementation of the **Logger** interface could be implemented.

```typescript
import {Logger} from '@sgohlke/graphql-server-base'

/**
 * Logger implementation that does not log anything.
 */
export class NoLogger implements Logger {
    loggerName: string
    serviceName: string
    debugEnabled = false

    constructor(loggerName: string, serviceName: string, debugEnabled = false) {
        this.loggerName = loggerName
        this.serviceName = serviceName
        this.debugEnabled = debugEnabled
    }

    debug(logMessage: string, context?: unknown): void {}
    logDebugIfEnabled(message: string, context?: unknown): void {}
    error(logMessage: string,
        error: Error,
        customErrorName: string,
        context?: unknown): void {}
    info(logMessage: string, context?: unknown): void {}
    warn(logMessage: string, context?: unknown): void {}
}
```

## Contact

If you have questions or issues please visit our [Issue page](https://github.com/sgohlke/graphql-server-base/issues)
and open a new issue if there are no fitting issues for your topic yet.


## License

graphql-server is under [MIT-License](./LICENSE).

[1]: https://github.com/dreamit-de/graphql-server

[2]: https://github.com/graphql/graphql-js