open-index/open-npm huggingface dataset:
npm package: @setapp/setapp-button
Description: Setapp button for vendors sites
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Desktop-App-Helper

## Contributing guide
1. Create feature branch and perform changes.
2. Push changes to the origin and create pull-request.
3. After pull-request merging update local master.
4. Bump version and add a tag (for example using `npm version`).
5. Build module `npm run build`.
5. Push changes to the origin.
6. Publish new version to NPM.

## Versioning rules
* **patch** - new features and non-breaking fixes for existing ones. Does not require related projects updating
* **minor** - breaking changes that require related projects updating
* **major** - reserved for major updates

## Testing in related projects
There is a way to test new version of desktop-app-helper without publishing it to NPM:
1. Execute `npm link` inside desktop-app-helper project root.
2. Execute `npm link @macpaw/desktop-app-helper` inside related project's root.
3. Rebuild related project if needed.

## Scripts
* `npm run lint` - check code with eslint
* `npm run build` - it will generate lib dir with ES4 files
npm package: @setar/audiomerging
Description: a Promise-based Module for merging Audios
Author: Ehsan Fox
Latest version: 1.1.1

# @setar/audiomerging
a Promise-based Module for merging Audios

this module uses ffmpeg to connect every audios to eachother(at the back of the 1st or last music in the array)

there wouldn't be any kinda of docs or anything since this package is kinda made for personal uses, but you can feel free to make one by using jsdoc.
npm package: @setar/cache
Description: an easy-to-use Cache Manger based on node-cache
Author: EhsanFox
Latest version: 1.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Cache
 an easy-to-use Cache Manger based on [node-cache](https://www.npmjs.com/package/node-cache)

> TIP: This lib methods are replaced with the `node-cache` methods but the Config(constructor arg) is the same.

You can find the whole docs in [docs folder](https://github.com/SeTar-Bot/Cache/tree/main/docs)
npm package: @setar/database
Description: Utility Database controller used in Setar.
Author: Ehsan Fox
Latest version: 1.2.18

# Database Controller

## About Package
Package created to Create Connection with MYSQLi Database and Communicate without having MYSQL Knowledge

## How to Use?
There is no docs for it and there wouldn't be, try read the code and see how it works!

## 🔰 License
This software is released under the [MIT License](https://ehsanfox.mit-license.org/)
```
 The MIT License (MIT)

Copyright © 2021 Ehsan Golmakani ehsan8184@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

```
npm package: @setar/utils
Description: a module to help you automate some functions
Author: Ehsan Golmakani
Latest version: 1.0.1

# discord-utils
 a module to help you automate some functions

## Table of Contents
- [Installation](#installation)
- [Methods](#methods)
    - [AutoPublish](#autopublish)
- [License](#license)

### Installation

`npm install @setar/utils`

### Methods

#### AutoPublish
> Publish any created Message on the Channel (you can specify the author(s) too)

 - Notice: Pass Your Discord Client before you handle all your events.
```js
// ESM
import UtilClient from "@setar/utils"

// CommonJS/CJS
const { Client: UtilClient } = require("@setar/utils")

const myUtils = new UtilClient(myBotClient);
myBotClient.on('messageCreate', (message) => { /* DO WHATEVER */})

myUtils.autoPublish('channel_id', ['admin_id', 'admin_id_2']);
```

## License
[MIT License](https://github.com/SeTar-Bot/discord-utils/blob/main/LICENSE)
npm package: @setar/zarinpal
Description: a Package to Control Your Zarinpal Payments
Author: Ehsan Fox
Latest version: 1.1.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Zarinpal
a Package to Control Your Zarinpal Payments

## Any Docs?
Nope, it's pretty basic, setup your Zarinpal Gate at first:
```js
const ZarinPal = require("@setar/zarinpal");
const MyGate = new ZarinPal('MY-MERCHANT-CODE-IN-HERE', false /* do i want sandbox option? */);
```

so about the functions, we got 4 of them

  - **Request** function makes a new Code and URL for a User ready to pay!
  - **Information** function returns status of a Code to see if the user got paid their payment or not
  - **FailedPayments** function returns a list of all The Codes that never got their payments finished
  - **EnableCode** function makes a Code available to use again for user and returns the api status code

**P.S:** all the functions returns promise.
npm package: @setaria/setaria-ts
Author: setariajs
Latest version: 0.0.17

# 基于Setaria.js的Ts重构版


## 打包 

```cmd
pnpm run build

pnpm run build:dts

```

## 发布

```cmd

pnpm run build-version

npm publish --registry=https://registry.npmjs.org/


```
npm package: @setarnv/directus-payaw-extension-sdk
Description: A shared package for Pay.aw integration with Directus Api side extensions.
Author: Setar N.V.
Latest version: 1.0.2


# Directus Payaw Extension SDK

This package provides a programmatic SDK for working with the [pay.aw Directus extension](https://pay.aw) from other Directus API-side extensions. It enables you to create and manage pay.aw payment transactions, check payment status, and perform rollbacks directly in code, without relying on UI flows or manually defining models.

## Why use this SDK?

When integrating pay.aw payments into your Directus project, you may want to trigger payments or check statuses from your own custom extensions (for example, a "store" extension). Instead of using the Directus ItemsService directly and manually defining models, this SDK provides:

- Strongly-typed models for pay.aw transactions and vendors
- A service class (`Payaw`) that encapsulates all pay.aw extension logic
- Methods to create transactions, check status, and perform rollbacks just like the built-in flow operation
- Automatic handling of extension version checks and vendor resolution

## Installation

Install the package using npm:

```
npm install directus-payaw-shared
```

## Usage

### Importing the SDK

```typescript
import Payaw from '@setarnv/directus-payaw-extension-sdk';
```

### Creating a Payment Transaction

```typescript
const payaw = new Payaw(extensionContext);
const transaction = await payaw.sendPaymentRequest(
	orderId,      // number
	userId,       // string
	amount,       // number (in cents)
	vendorId,    // number | undefined
	description   // string | undefined
);
```

### Checking Payment Status

```typescript
const status = await payaw.getPaymentStatus(paymentReference);
```

### Rolling Back a Payment

```typescript
await payaw.rollbackPayment(paymentReference, 'Optional rollback comment');
```

## API Overview

### `Payaw` class

The main entry point for interacting with pay.aw transactions in code. See the source for full method documentation.

- `constructor(extensionContext, eventContext?, appType?, walletType?, maxChecks?, checkIntervalMs?)`
- `sendPaymentRequest(orderId, userId, amount, vendorId?, description?)`
- `getPaymentStatus(paymentReference)`
- `rollbackPayment(paymentReference, rollbackComment?)`

### Models and Types

The SDK exports all pay.aw transaction and vendor types for use in your own code.

## Example: Using in a Custom Extension

Suppose you have a "store" Directus extension and want to trigger a pay.aw payment when an order is placed:

```typescript
import Payaw from '@setarnv/directus-payaw-extension-sdk';

export default ({ services, database, getSchema }) => {
	const payaw = new Payaw({ services, database, getSchema });

	// ... inside your order logic:
	await payaw.sendPaymentRequest(orderId, userId, amount);
};
```

## Contributing

Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

## License

This project is licensed under the MIT License. See the LICENSE file for more details.
npm package: @setemiojo/utils
Description: Opinionated collection of common JavaScript / TypeScript utils by @oluwasetemi forked from @antfu/utils
Author: Oluwasetemi Ojo
Latest version: 0.0.6

# @setemiojo/utils

A Fork [@antfu/utils](https://github.com/antfu/utils)

[![NPM version](https://img.shields.io/npm/v/@setemiojo/utils?color=a1b858&label=)](https://www.npmjs.com/package/@setemiojo/utils)
[![codecov](https://codecov.io/gh/oluwasetemi/utils/branch/main/graph/badge.svg)](https://codecov.io/gh/oluwasetemi/utils)
[![Docs](https://img.shields.io/badge/docs-green)](https://www.jsdocs.io/package/@setemiojo/utils)

Opinionated collection of common JavaScript / TypeScript utils by [@oluwasetemi](https://github.com/oluwasetemi) forked from [Anthony Fu](https://github.com/antfu)

- Tree-shakable ESM
- Fully typed - with TSDocs
- Type utilities - `Arrayable<T>`, `ElementOf<T>`, etc.

> This package is designed to be used as `devDependencies` and bundled into your dist.

## Documentation

📚 **[View Full Documentation](./docs/README.md)** - Complete guide with examples for all utilities.

## License

[MIT](./LICENSE) License © 2021-PRESENT [Oluwasetemi Ojo](https://github.com/setemiojo)