open-index/open-npm huggingface dataset:
npm package: @saury/tiny-app-cli
Description: 自动提审与发布微信小程序, 更好的实现小程序的CI/CD
Author: saury
Latest version: 2.2.2

# 🚀 tiny-app-cli
自动提审、发布与自检微信小程序，更好的实现小程序的CI/CD

## 安装
With NPM:
```bash
npm install -g @saury/tiny-app-cli
```

With PNPM:
```bash
pnpm install -g @saury/tiny-app-cli
```

With Yarn:
```bash
yarn add -g @saury/tiny-app-cli
```

## 如何使用？
```bash
tiny-app-cli
```
然后按照提示去做!

## 命令行参数
```console
$ tiny-app-cli -h
Usage: tiny-app-cli [options]

自动提审、发布与自检微信小程序, 更好的实现小程序的CI/CD

Options:
  -V, --version               output the version number
  -p, --platform <platform>   操作的平台 (choices: "weixin", "alipay")
  -a, --action <action>       提审、发布或自检 (choices: "review", "release", "inspect")
  -f, --force-submit          如果存在【审核中】或【审核通过】的版本，这将强制提交新的审核版本 (choices: "true", "false")
  -hl, --headless [headless]  浏览器无头模式 (choices: "false", "new", default: "new")
  -h, --help                  display help for command
```

示例
```bash
# 微信小程序提审
tiny-app-cli -p weixin -a review

# 微信小程序发布
tiny-app-cli -p weixin -a release

# 微信小程序自检（检查审核版本状态）
tiny-app-cli -p weixin -a inspect
```

## 功能说明

### 🔍 自检模式
自检模式可以检查并列出选中账户的审核版本信息，包括：
- **版本号**：当前审核版本的版本号
- **审核状态**：
  - 审核中
  - 审核通过待发布
  - 审核不通过
  - 无审核版本

#### 自检结果示例
```
🔍 自检结果 (2个):
  • 账户名称1
    版本号: 1.0.5
    状态: 审核通过待发布

  • 账户名称2
    版本号: 1.0.3
    状态: 审核中
```

### 📋 支持的操作
- **提审 (review)**：自动提交小程序审核
- **发布 (release)**：发布已通过审核的小程序版本
- **自检 (inspect)**：检查当前审核版本的状态和版本号

## 注意事项
- 由于当前功能不完善，在微信小程序提审的过程中，请确保你已经提审过一次小程序

## 更多功能正在设计中...

## 其他
如果有任何问题，欢迎提 [issue](https://github.com/saury/tiny-app-cli/issues) 或者 [PR](https://github.com/saury/tiny-app-cli/pulls)!
npm package: @sausage_team/object_plus
Description: # Usage
Author: fencer-yd
Latest version: 1.0.2

# object_plus

# Usage

```
npm install @sausage_team/object_plus
or
yarn add @sausage_team/object_plus
```

# Configuration

### isArray()

```
const a = {}
a.isArray() //false
const b = []
b.isArray() //true
```

### arrayLength()
```
const a = {}
a.arrayLength() // -1
const b = []
b.arrayLength() // 0
const c = [1]
b.arrayLength() // 1
```

### objectLength()
```
const a = []
a.objectLength() //-1
const b = {}
b.objectLength() //0
const c = {a: 1}
b.objectLength() //1
```

### getter()
```
const a = {
    b: {
        c: 1
    }
}
a.getter('b.c') // 1
```
npm package: @savagechieftain/regext
Description: Extended RegExp class with additional utility methods for JavaScript and TypeScript
Author: SavageChieftain
Latest version: 1.2.0

# RegExt - Extended Regular Expression Class

[![npm version](https://badge.fury.io/js/regext.svg)](https://badge.fury.io/js/regext)
[![Release](https://github.com/SavageChieftain/regext/workflows/Release/badge.svg)](https://github.com/SavageChieftain/regext/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)

- RegExt is a TypeScript library that provides convenient utility methods by extending JavaScript's standard RegExp class.
- It offers complete TypeScript support and type safety.

## Features

- 🚀 Full TypeScript support
- 📦 ES Modules & CommonJS support
- 🔧 Rich extension methods
- 🛡️ Type-safe operations
- 📝 Comprehensive JSDoc documentation

## Installation

```bash
npm install regext
```

## Usage

### ES Modules (TypeScript/JavaScript)

```typescript
import RegExt from 'regext';

// Full type support in TypeScript
const regex = new RegExt('\\d+', 'g');
const numbers: string[] = regex.extract('abc123def456');
console.log(numbers); // ['123', '456']
```

### CommonJS

```javascript
const RegExt = require('regext').default;
```

### TypeScript

```typescript
import RegExt from 'regext';
```

## Quick Start

```javascript
import RegExt, { escape } from 'regext';

const regex = new RegExt('\\d+', 'g');

// Extract all numbers from text
const numbers = regex.extract('Price: $29.99, Tax: $3.50');
console.log(numbers); // ['29', '99', '3', '50']

// Count matches
const count = regex.count('123 456 789');
console.log(count); // 3

// Safe testing without affecting lastIndex
const hasNumbers = regex.safeTest('abc123');
console.log(hasNumbers); // true

// Use escape mode for literal string matching
const literalRegex = new RegExt('$100', { escape: true, flags: 'g' });
console.log(literalRegex.test('$100')); // true

// Or use the escape utility function
const pattern = escape('$100');
const regex2 = new RegExt(pattern, 'g');
```

## Methods Overview

### Instance Methods
- **`loopExec(str)`** - Get all matches with infinite loop prevention
- **`safeTest(str)`** - Test without modifying lastIndex
- **`extract(str)`** - Extract matched strings as array
- **`extractGroups(str)`** - Extract capture groups
- **`replaceAll(str, replacement)`** - Replace all matches
- **`replaceFirst(str, replacement)`** - Replace first match only
- **`count(str)`** - Count number of matches
- **`findLast(str)`** - Get the last match

### Utility Functions
- **`escape(str)`** - Escape special regex characters for literal matching

### Constructor Options
- **Escape Mode** - Automatically escape patterns for literal string matching

## Documentation

- [📖 API Reference](./docs/api.md) - Complete API documentation
- [💡 Usage Examples](./docs/examples.md) - Practical examples and use cases
- [🤝 Contributing](./CONTRIBUTING.md) - Development setup and guidelines

## License

MIT
npm package: @savalazic/event-bus
Description: Simple Event Bus library for event management.
Author: Sava Lazic
Latest version: 1.0.0

# event-bus

Simple Event Bus library for event management.

## API

### `addEventListener`

```js
// @event - string
// @callback - function
EventBus.addEventListener(event, callback);
```

### `removeEventListener`

```js
// @event - string
// @callback - function
EventBus.removeEventListener(event, callback);
```

### `dispatchEvents`

```js
// @event - string
// @detail (optional) - object
EventBus.dispatchEvents(event, detail);
```

## Example

[All examples](https://github.com/savalazic/event-bus/tree/master/example)

## Licence

event-bus is released under the MIT license.
Copyright © 2018 Sava Lazic.
npm package: @savalet/easy-logs
Description: A simple logger for Node JS
Author: savalet
Latest version: 1.0.3

# Easy Logs
Easy Logs is a simple logging module for Node.js that allows you to log messages to a file and/or to the console with customizable log levels. The logs are automatically rotated daily, with each day's logs being stored in a file named in the format "YYYY-MM-DD.log".

## Installation
To use Easy Logs in your Node.js project, you can install it via NPM:
```shell
npm i @savalet/easy-logs
```

## Usage
To use Easy Logs in your Node.js project, you first need to import it into your file:
```js
const logger = require('@savalet/easy-logs');
```

Then, you can use the logger object to log messages at different levels:
```js
logger.error('An error occurred');
logger.warn('A warning occurred');
logger.info('An informational message');
logger.debug('A debug message');
```

## Configuration

The logger can be configured by setting the following environment variables:

    LOG_DIRECTORY: The directory where log files should be stored. Defaults to ./logs.

## License

Easy Logs is released under the MIT License. See LICENSE file for details.
npm package: @savanapoint/pub-sub
Description: A Pub/Sub library using Firebase Firestore
Author: Francisco Inoque
Latest version: 0.1.2


# @savanapoint/pub-sub

The `@savanapoint/pub-sub` library facilitates implementing a pub/sub messaging system using Firebase Firestore and TypeScript. It enables publishing messages to channels and subscribing to receive messages from those channels.

## Installation

To install the library, run the following command:

```bash
npm install @savanapoint/pub-sub
```

## Usage

### Initialization

First, initialize the `PubSub` class with your Firebase configuration:

```typescript
import PubSub from '@savanapoint/pub-sub';

const firebaseConfig = {
  apiKey: process.env.FIREBASE_API_KEY,
  authDomain: process.env.FIREBASE_AUTH_DOMAIN,
  databaseURL: process.env.FIREBASE_DATABASE_URL,
  projectId: process.env.FIREBASE_PROJECT_ID,
  storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
  messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
  appId: process.env.FIREBASE_APP_ID,
};

const pubSub = new PubSub(firebaseConfig);
```

### Publish a Message

To publish a message to a channel, use the `publish` method of the `PubSub` class:

```typescript
pubSub.publish('channelName', 'Hello, World!', ['subscriberId1', 'subscriberId2'])
  .then(() => {
    console.log('Message published successfully');
  })
  .catch((error) => {
    console.error('Error publishing message:', error);
  });
```

- **`channel`**: The name of the channel where the message will be published.
- **`message`**: The content of the message to be published.
- **`subscribers`**: List of subscriber IDs who will receive the message.

### Subscribe to a Channel

To subscribe to a channel and receive messages, use the `subscribe` method of the `PubSub` class:

```typescript
pubSub.subscribe('channelName', ['subscriberId1', 'subscriberId2'], (message) => {
    console.log('Received message:', message);
  })
  .catch((error) => {
    console.error('Error subscribing to channel:', error);
  });
```

- **`channel`**: The name of the channel to which the subscribers are subscribing.
- **`subscriberIds`**: List of subscriber IDs who should receive the messages.
- **`onMessage`**: Callback function that will be called when a new message is received. It receives the message as an argument.

### Error Handling

- **Errors When Publishing Messages:** Any error that occurs during the publishing of the message will be caught and logged to the console.
- **Errors When Subscribing to Channels:** Any error that occurs during subscription to the channel will be caught and logged to the console.

## Contributing

If you would like to contribute to the library, please follow these steps:

1. Fork the repository.
2. Create a branch for your changes.
3. Make your modifications and test them.
4. Submit a pull request to the main repository.

## License

The library is licensed under the [MIT License](LICENSE).
npm package: @savanapoint/pub-sub-legacy
Description: A Pub/Sub library using Firebase Firestore
Author: Francisco Inoque
Latest version: 0.0.2


# @savanapoint/pub-sub

The `@savanapoint/pub-sub` library facilitates implementing a pub/sub messaging system using Firebase Firestore and TypeScript. It enables publishing messages to channels and subscribing to receive messages from those channels.

## Installation

To install the library, run the following command:

```bash
npm install @savanapoint/pub-sub
```

## Usage

### Initialization

First, initialize the `PubSub` class with your Firebase configuration:

```typescript
import PubSub from '@savanapoint/pub-sub';

const firebaseConfig = {
  apiKey: process.env.FIREBASE_API_KEY,
  authDomain: process.env.FIREBASE_AUTH_DOMAIN,
  databaseURL: process.env.FIREBASE_DATABASE_URL,
  projectId: process.env.FIREBASE_PROJECT_ID,
  storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
  messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
  appId: process.env.FIREBASE_APP_ID,
};

const pubSub = new PubSub(firebaseConfig);
```

### Publish a Message

To publish a message to a channel, use the `publish` method of the `PubSub` class:

```typescript
pubSub.publish('channelName', 'Hello, World!', ['subscriberId1', 'subscriberId2'])
  .then(() => {
    console.log('Message published successfully');
  })
  .catch((error) => {
    console.error('Error publishing message:', error);
  });
```

- **`channel`**: The name of the channel where the message will be published.
- **`message`**: The content of the message to be published.
- **`subscribers`**: List of subscriber IDs who will receive the message.

### Subscribe to a Channel

To subscribe to a channel and receive messages, use the `subscribe` method of the `PubSub` class:

```typescript
pubSub.subscribe('channelName', ['subscriberId1', 'subscriberId2'], (message) => {
    console.log('Received message:', message);
  })
  .catch((error) => {
    console.error('Error subscribing to channel:', error);
  });
```

- **`channel`**: The name of the channel to which the subscribers are subscribing.
- **`subscriberIds`**: List of subscriber IDs who should receive the messages.
- **`onMessage`**: Callback function that will be called when a new message is received. It receives the message as an argument.

### Error Handling

- **Errors When Publishing Messages:** Any error that occurs during the publishing of the message will be caught and logged to the console.
- **Errors When Subscribing to Channels:** Any error that occurs during subscription to the channel will be caught and logged to the console.

## Contributing

If you would like to contribute to the library, please follow these steps:

1. Fork the repository.
2. Create a branch for your changes.
3. Make your modifications and test them.
4. Submit a pull request to the main repository.

## License

The library is licensed under the [MIT License](LICENSE).
npm package: @savanchhayani/components-library
Description: Made with create-react-library
Author: savanchhayani
Latest version: 1.0.0

# components-library

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/components-library.svg)](https://www.npmjs.com/package/components-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save components-library
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'components-library'
import 'components-library/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [savanchhayani](https://github.com/savanchhayani)
npm package: @savant-realms/fizzmatch
Description: A TypeScript package for fuzzy string search
Author: Savant Realms
Latest version: 0.1.0

# FizzMatch

FizzMatch: A TypeScript package for fuzzy string search, implemented from scratch.

## Overview

FizzMatch is a lightweight TypeScript module for fuzzy string search, implemented from scratch using Levenshtein distance. Perfect for auto-complete, typo-tolerant lookup, and search-as-you-type features.

## Installation

```bash
npm install fizzmatch
```

## Usage

```typescrip
import { search, topMatch } from "fizzmatch";

const items = ["apple", "banana", "orange"];
console.log(search("appl", items));       // [ { item: 'apple', distance: 1 }, … ]
console.log(topMatch("banan", items));    // { item: 'banana', distance: 1 }
```

## Building Locally

```bash
npm install
npm run build
```
npm package: @savantly/gremlin-js
Description: Gremlin client [Tinkerpop]
Author: Jeremy@Savantly.net
Latest version: 1.2.2

# gremlin-js
Javascript client for a gremlin server


### Usage 

Script tag -

	<script type="text/javascript" src="gremlin.umd.js"></script>

npm/yarn -	

	npm install @savantly/gremlin-js
	


### Example

	var options = new gremlinjs.GremlinClientOptions();
	var service = new gremlinjs.GremlinService(options);
	
	var query = service.createQuery('g.V().limit(50).values()');
	
	query.onComplete = function(response) {
		console.log(response);
		$('#results').text(JSON.stringify(response.data));
	}
			
			
Or custom options -  

	var service = new gremlinjs.GremlinService({host: 'localhost', port: 8182'});   
			
Full list of client options [with defaults]- 

	port = 8182
	host = 'localhost'
	path = '/gremlin'
	language = 'gremlin-groovy'
	useSession = true
	ssl = false
	rejectUnauthorized = true
	accept = 'application/json'
	processor = ''
	channelType = 'websocket'
	
	user: empty;
	password: empty;