open-index/open-npm huggingface dataset:
npm package: @hotstaq/admin-panel
Description: This application was bootstrapped with [HotStaq](https://www.github.com/OurFreeLight/HotStaq)
Author: FreeLight, Inc
Latest version: 0.3.17

# @hotstaq/admin-panel
This application was bootstrapped with [HotStaq](https://www.github.com/OurFreeLight/HotStaq)

## Getting Started
Navigate to the project's directory then enter:

	npm run build

This will transpile the TypeScript into ES6 JavaScript by default. After this is done building, enter: 
			
	npm run dev

This will launch the web server in development mode. Open a web browser and navigate to https://127.0.0.1:8080 to see the example page!

## Docker
To build the docker images navigate to the project's directory and enter:
```console
hotstaq build
```

This will build the Dockerfile. After which you can navigate into your output directory and enter:
```console
./build.sh
```

To start the docker image, run:
```console
./start-app.sh
```

## API Generation
To generate a web client for use on a website enter:
```console
npm run build-web
```

To generate the OpenAPI 3.0.0 YAML documentation enter:
```console
npm run build-doc
```
npm package: @hotstaq/dataroute
Description: A generic data route for HotStaq. Mostly handles database queries.
Author: FreeLight, Inc
Latest version: 0.2.12

# HotStaq Data Route
This application was bootstrapped with [HotStaq](https://www.github.com/OurFreeLight/HotStaq)

## Getting Started
Navigate to the project's directory then enter:

	npm run build

This will transpile the TypeScript into ES6 JavaScript by default. After this is done building, enter: 
			
	npm run dev

This will launch the web server in development mode. Open a web browser and navigate to https://127.0.0.1:8080 to see the example page!

## Docker
To build the docker images navigate to the project's directory and enter:
```console
hotstaq build
```

This will build the Dockerfile. After which you can navigate into your output directory and enter:
```console
./build.sh
```

To start the docker image, run:
```console
./start-app.sh
```

## API Generation
To generate a web client for use on a website enter:
```console
npm run build-web
```

To generate the OpenAPI 3.0.0 YAML documentation enter:
```console
npm run build-doc
```
npm package: @hotstaq/userroute
Description: A user route for HotStaq. Allows users to be created/edited/deleted securely.
Author: FreeLight, Inc
Latest version: 0.6.18

# HotStaq User Route
Documentation is coming...

This supports MariaDB and PostgreSQL databases. MySQL support is experimental and most likely does not work!

For API documentation, please see the [OpenAPI Documentation](./api.md)

## Getting Started
Simply install this package into your HotStaq project by doing:
```console
npm install @hotstaq/userroute
```

Then in your code base, navigate to your API that extends the HotAPI class and add the new route:
```javascript
this.addRoute (new UserRoute (this));
```

Now your API will have the user route available with all the endpoints listed in the OpenAPI documentation.

**NOTE** The environment variable `JWT_SECRET_KEY` is required for this package to work. This is the secret key used to sign the JWT tokens.

## Environment Variables
* JWT_SECRET_KEY
    * Description: The JWT secret key to use for signing tokens.
    * Type: string
    * Default: 
* AUTO_VERIFY_USERS
    * Description: If set to 1, users will be automatically verified upon registration. This is mostly for development purposes.
    * Type: number
    * Default: 0
* DISABLE_REHASHING
    * Description: If set to 1, passwords will not be rehashed after a successful login.
    * Type: number
    * Default: 0
* DATABASE_DISABLE
    * Description: If set to 1, a database connection will not be established.
    * Type: number
    * Default: 0

## API Generation
To generate a web client for use on a website enter:
```console
npm run build-web
```

To generate the OpenAPI 3.0.0 YAML documentation enter:
```console
npm run build-doc
```
npm package: @hotsuitor/akutil
Description: Common web development tools functions. 封装日常开发常用的工具函数
Author: hotsuitor
Latest version: 0.0.2

[TOC]

# 说明

业务开发常用工具函数封装

## 安装

```sh
yarn add @hotsuitor/akutil
```

## 使用

```js
import akutil from 'akutil'
```

详情使用说明，请查看[说明文档](./docs/modules.md)

## 参与开发

1. git clone 代码
2. 安装依赖
3. 配置 Git hook
3.1 `npx husky install`
3.2 `npx husky set pre-commit "npx lint-staged"`
3.3 提示：因为没有将钩子 '.husky/pre-commit' 设置为可执行，钩子被忽略。
设置执行权限 `chmod +x .husky/pre-commit`
npm package: @hotsuitor/axios-wx
Description: 参考axios的方式对微信小程序请求封装库
Author: hotsuitor
Latest version: 0.0.3

[TOC]

# 说明

对微信小程序请求方法 `wx.request` 封装，支持 `axios` 的方式调用

## 安装

```sh
yarn add @hotsuitor/axios-wx
```

## 使用

```js
import axios from '@hotsuitor/axios-wx'
```

使用方式和`axios`相同
支持：
- [x] `baseURL`公共配置
- [x] 函数方式调用
- [x] 创建实例
- [x] 快捷方法
- [x] 请求拦截
- [x] 取消请求

### 配置说明

```js
// 配置示例
axios({
  url: '', // 请求url
  method: '', // 请求方法
  headers: {}, // 请求头
  data: '', // 请求参数
})
```
### 函数方式调用

```js
axios({
  url: 'https://httpbin.org/get',
  method: 'get'
}).then(res => {

}).catch(err => {

})
```
### 实例方式
```js
let instance = axios.create({
  headers: {
    token: 'token'
  }
})
instance({
  url: 'https://httpbin.org/get',
  method: 'get'
})
```
### 快捷方法
支持微信小程序 `[wx.request](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html)` 支持的所有方法

```js
axios.get(url, data)
```
```js
axios.post(url, data)
```

### 拦截器

请求拦截
```js
axios.interceptor.request.use((config) => {
  return config
})
```
响应拦截
```js
axios.interceptor.response.use((res) => {
  return res
})
```

### 取消请求

```js
const CancelToken = axios.CancelToken;
let cancel;

axios.get('/user/12345', {
  cancelToken: new CancelToken(function executor(c) {
    // An executor function receives a cancel function as a parameter
    cancel = c;
  })
});

// cancel the request
cancel();
```

## 参与开发

1. git clone 代码
2. 安装依赖
3. 配置 Git hook
3.1 `npx husky install`
3.2 `npx husky set pre-commit "npx lint-staged"`
3.3 提示：因为没有将钩子 '.husky/pre-commit' 设置为可执行，钩子被忽略。
设置执行权限 `chmod +x .husky/pre-commit`
npm package: @hotsuitor/upload-dist
Description: A cli upload dist directory.
Author: hotsuitor@qq.com
Latest version: 1.1.0

## Introduction

nodejs 脚本实现上传前端打包目录 `dist`。用到 `ssh2-sftp-client` 这个包实现上传功能。
在项目根目录运行 `upload-dist` 把打包后的 `dist` 目录上传到服务器
> 服务器上的 `dist` 目录内容会被清空后，再上传


## Installation

```sh
npm install -D @hotsuitor/upload-dist
# or
yarn add -D @hotsuitor/upload-dist
```

## Example

在项目根目录下新建 `.env.local` 文件，示例配置：
```
DEBUG=false
SFTP_SERVER=127.0.0.1
SFTP_USER=username
SFTP_PASSWORD=password
SFTP_PORT=22
BUILD_DIR=../dist
DESTINE_DIR=/var/www/test/
```

- **SFTP_SERVER** 服务器ip
- **SFTP_USER** 服务器登录用户
- **SFTP_PASSWORD** 服务器登录密码
- **BUILD_DIR** 打包文件目录，相对路径
- **DESTINE_DIR** 远程服务器存放路径，绝对路径

默认读取的配置文件是根目录下的 `.env.local` 配置文件

配置参数
```
A cli to upload file to service.
一个用来上传文件的cli工具。

  The cli can upload file to service by command. It does not need a sftp
  client. It is configurable.
  一个用命令上传文件的工具，可以方便前端开发打包后上传dist文件到服务器，
  支持参数配置。

Options

  -v, --version Boolean        Print current version
  -h, --help Boolean           Print this usage guide.
  -c, --config String          The file of configuration. It is consist of
                               dotenv file. Default profile is ".env.local"
  -host, --host String         The host of service
  -u, --username String        The username of service
  -pwd, --password String      The password of service
  -p, --port Number            The port of service ssh. Default is 22
  -s, --sourceFile String      The file wanted to upload service. Using
                               relative path.
  -d, --destFile String        The file is want to save on service. Using
                               absolute path.
  -t, --test Boolean           Test connect.
  -i, --ignore String|RegExp   Ignore file in source file. Default ignore file
                               include these "(.git, node_modules)"
```

## Run

查看帮助
```bash
npx upload-dist -h
```

上传命令
```
npx upload-dist
```

- [x] 增加参数读取指定配置文件 <-- 2023-4-25
npm package: @hotsuitor/wxcli
Description: A cli for develop Wechat miniProgram convenient.
Author: hotsuitor@qq.com
Latest version: 0.0.7

# MINIAPP CLI
一款封装了微信开发者工具 `开发辅助-命令行调用` 的cli工具。
主要是方便使用了 `webpack` 打包小程序的使用场景。

## Install

```sh
npm i -g wxcli
```

把微信开发者工具的安装目录配置到 `系统环境变量` `path` 中

> 参考：https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html

![20211229092010](https://piclive.oss-cn-shenzhen.aliyuncs.com/blog/pictures/20211229092010.png)

把此路径配置到 `系统环境变量` `path` 中

## 使用

```sh
wxcli
```

![20211229092030](https://piclive.oss-cn-shenzhen.aliyuncs.com/blog/pictures/20211229092030.png)

交互式创建小程序模板
```sh
wxcli create
```
![20211230140312](https://piclive.oss-cn-shenzhen.aliyuncs.com/blog/pictures/20211230140312.png)
可在目录中找到 `template` 修改模板文件

交互式打开，预览，上传小程序
```sh
wxcli run
```
![20211230140233](https://piclive.oss-cn-shenzhen.aliyuncs.com/blog/pictures/20211230140233.png)
默认打包目录是根目录下的 `dist`
- `dist/dev` 开发环境打包目录
- `dist/test` 测试环境打包目录
- `dist/prod` 生产环境打包目录

- todo: 可选打包路径
npm package: @hotsuop/codestats
Description: Package to check code stats
Author: hotsuop
Latest version: 2.5.7

# Discord Code Stats Bot

![Version](https://img.shields.io/badge/version-2.5.0-blue.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)

A simple npm package for chehcking code stats

some usage

## on how to use it in a discord bot checkout discordusage.js

```js

const getCodeStats = require('./index.js');

// Define the folder path to analyze
const folderPath = './example';

// Define the configuration object
const config = {
    languages: ['js', 'html', 'py'], // Add more languages if needed
    exclude: ['node_modules'], // Add folders to exclude
    fileTypes: ['xml', 'css'], // Add more file types if needed
    depthLimit: 5,
};


// Call getCodeStats with the folder path and configuration
getCodeStats(folderPath, config)
    .then(projectStats => {
        // Display the calculated project stats
        console.log('Project Statistics:');
        console.log(`Total Files: ${projectStats.totalFiles}`);
        console.log(`Total Lines: ${projectStats.totalLines}`);
        console.log(`Total Characters: ${projectStats.totalCharacters}`);
        console.log(`Total Functions: ${projectStats.totalFunctions}`);
        console.log(`Total Classes: ${projectStats.totalClasses}`);
        console.log(`Total Comments: ${projectStats.totalComments}`);

        // Display detailed stats for each file
        console.log('\nFile Statistics:');
        projectStats.files.forEach(fileStats => {
            console.log(`\nFile: ${fileStats.filePath}`);
            console.log(`Lines: ${fileStats.lines}`);
            console.log(`Characters: ${fileStats.characters}`);
            console.log(`Functions: ${fileStats.functionsCount}`);
            console.log(`Classes: ${fileStats.classesCount}`);
            console.log(`Comments: ${fileStats.commentsCount}`);
        });

        // Display file types summary
        console.log('\nFile Types Summary:');
        console.log('Type\t| Files\t| Lines');
        console.log('--------|-------|----------');
        for (const fileType in projectStats.fileTypesStats) {
            const fileTypeStats = projectStats.fileTypesStats[fileType];
            console.log(`${fileType}\t| ${fileTypeStats.files}\t| ${fileTypeStats.lines} (${((fileTypeStats.lines / projectStats.totalLines) * 100).toFixed(2)}%)`);
        }
        console.log('--------|-------|----------');
        console.log(`All\t| ${projectStats.totalFiles}\t| ${projectStats.totalLines}`);
    })
    .catch(error => {
        console.error(chalk.red(`Error: ${error.message}`));
    });


```

## Installation

``Npm i @hotsu0p/code-stats``
npm package: @hotswapbsc/hotswap-sdk
Description: 🛠 An SDK for building applications on top of hotswap.
Latest version: 1.0.4

# hotswap-sdk 

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@hotswapbsc/hotswap-sdk/latest.svg)](https://www.npmjs.com/package/@hotswapbsc/hotswap-sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/hotswapfinance/hotswap-sdk.git
```

Move into the hotswap-sdk working directory

```sh
cd hotswap-sdk
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @hotta/react-native-imagepicker
Description: @hotta/react-native-imagepicker
Author: 伟宁
Latest version: 0.1.4

# 基于react-native0.82版本的图片选择器（TurboModule）

This is a fork of  [react-native-syan-image-picker](https://github.com/syanbo/react-native-syan-image-picker)

### 原生框架依赖

- Android:  [PictureSelector](https://github.com/LuckSiege/PictureSelector) - by [LuckSiege](https://github.com/LuckSiege)

- iOS:[TZImagePickerController](https://github.com/banchichen/TZImagePickerController) - by [banchichen](https://github.com/banchichen)

### 安装

```
yarn add @hotta/react-native-imagepicker@0.1.3
```

### 使用方法

```
import HTImagePicker from '@ht/react-native-image-picker/src';
const options: any = {
      mediaType: 'photo',
      sortOrder: 'asc',
    }
const response = await HTImagePicker.asyncShowImagePicker(options);
```