open-index/open-npm huggingface dataset:
npm package: @smartway.italia/automatic-cash-vne
Description: A typescript module of api for VNE Automatic Cash communication protocol.
Author: lyancoder
Latest version: 1.1.15

### VNE自动收款机

### 命令列表
| tipo | Desc |
| --- | --- |
| 1 | 请求付款收据 |
| 2 | 轮询请求付款收据的结果 |
| 3 | 取消待处理的收据 |
| 5 | 请求待处理收据列表
| 10 | 请求操作员提款 |
| 11 | 轮询请求操作员提款结果 |
| 12 | 结束操作员提款操作 |
| 20 | 自动收款机状态 |
| 30 | 开始补充 |
| 31 | 结束补充 |
| 32 | 手动补充 |
| 33 | 补充轮询 |
| 40 | 操作员登录 |
| 41 | 操作员注销 |
| 50 | 清空回收箱 |
| 51 | 清空循环器 |
| 52 | 清空堆栈器内容 |
| 53 | 轮询清空操作状态 |
| 54 | 清空硬币分配器 |
| 55 | 开门 |
| 60 | 现金结账 |
| 65 | 退款 |
| 66 | 退款状态轮询 |
| 70 | 已完成的提款列表 |
| 71 | 已完成的支付列表 |
| 72 | 开启列表 |
| 73 | 现金结账清单 |
| 80 | 进入配置菜单 |
| 81 | 重新启动/关闭 |
| 82 | 收款机版本 |
| 90 | 外围设备配置 |
| 91 | 软件配置 |
| 92 | 现金储备设置 |
| 93 | 恢复结束 |

### 使用

```
const vne = new VNE('192.168.3.111');
<!-- 发送5欧元付款请求 -->
const response = await vne.sendRequest({
    tipo：1,
    importo: 500,
    opName: 'admin',
    refundable: 1,
    credit_card: 0
});
```
### 注意

- Node环境用v1.1.14
- React native 用最新版本
npm package: @smartway.italia/rnmpos
Description: A react-native package to connect with POS device base on PAX Italia MPOS API, only Android
Author: kongwykon
Latest version: 0.3.5

## Description
A react-native package to connect with POS device base on PAX Italia MPOS API, only Android

## NOTIC
必须在项目的build.gradle中添加, 否则eas build会找不到依赖
```groovy

allprojects {
    repositories {
        // ...
        flatDir { dirs "$rootDir/../node_modules/@smartway.italia/rnmpos/android/libs" } 
    }
}
```

## Usage
```sh
yarn add rnmpos
npx expo prebuild -p android 
#或者自行到android studio构建一遍
```



## Example 
```ts
import { NativeModules } from 'react-native';
// ...
    // HOOK
    const {startPayment,pax,ready} = usePAX({...});

    // Classic
    const pax = new PAX({ ip: "95.230.172.102", port: 8083 });
     pax.ready().then(async (res) => {
         console.log('ready:::: ', res);
         let promise = pax.startPayment({ amount: 10, currency: "978", IdTrx: "9999" })
         try {
             await promise
         } catch (error) {
             console.log('这里的payment失败的', error)
             pax.cancelTransaction();
         }
         console.log('paymentIDName', promise)
     })

// ...
```

## Issues

如果在 `Android` 面板没有看到 rnmpos, 可以在主项目中右键创建 “Android Module” -> "import Module" -> 选择 " ./node_modules/rnmpos/android" 的目录，就能加载。选择后android项目重新gradle build 一下.


### build 
```sh
yarn build
```
npm package: @smartweave/modules
Description: ## Overview The goal of the project is to provide standardized modules which can be used  by anyone. ## Installation ``` yarn add @smartweave/modules ``` ## Usage ### Setting up the contract In your project, create an `index.ts`. The modules allows you to
Author: Fabian Riewe
Latest version: 0.0.0-alpha

# SmartWeave modules

## Overview
The goal of the project is to provide standardized modules which can be used 
by anyone.
## Installation
```
yarn add @smartweave/modules
```
## Usage
### Setting up the contract
In your project, create an `index.ts`. The modules allows you to write 
SmartWeave Contracts in Typescript. Use can use this skeleton to get started:
```typescript
import {ActionInterface, StateInterface} from "@smartweave/modules/faces";

declare const SmartWeave: any;

export async function handle(state: StateInterface, action: ActionInterface) {
  switch (action.input.function) {
   
    default:
      throw new ContractError(`${input.function} not implemented`);
  }
}
```
### Using a module
To use a module, simply import it and register it in `handle`:
```typescript
import {ActionInterface, StateInterface} from "@smartweave/modules/faces";
import {Transfer} from "@smartweave/modules/token/transfer";

export async function handle(state: StateInterface, action: ActionInterface) {
  switch (action.input.function) {
    case "transfer":
      return { state: Transfer(state, action) };
    default:
      throw new ContractError(`${input.function} not implemented`);
  }
}
```
### Building the contract
Building the contract requires an extra script. Create a `build.js` script:
```javascript
const { build } = require("esbuild");
const fs = require("fs");

(async () => {
  await build({
    entryPoints: ["./src/index.ts"],
    outfile: "./dist/index.js",
    format: "esm",
    bundle: true,
  });

  let src = fs.readFileSync("./dist/index.js").toString();
  src = src.replace("async function handle", "export async function handle");
  src = src.replace("export {\n  handle\n};\n", "");
  fs.writeFileSync("./dist/index.js", src);
})();
```
To run the script execute:
```
node build.js
```
### Deploying the contract
Deploying the contract requires an extra script. Copy your arweave-keyfile, create a `deploy.js` script and your initial `state.json`:
```javascript
const Arweave = require("arweave");
const { createContract } = require("smartweave");
const fs = require("fs");

const client = new Arweave({
  host: "arweave.net",
  port: 443,
  protocol: "https",
});

const wallet = JSON.parse(fs.readFileSync("./arweave.json"));
const src = fs.readFileSync("./dist/index.js");
const state = fs.readFileSync("./scripts/state.json");

(async () => {
  const id = await createContract(client, wallet, src, state);
  console.log(id);
})();

```
To run the script execute:
```
node deploy.js
```
npm package: @smartweblib/frontend-lib
Description: Library for our frontend app
Author: SmartWeb
Latest version: 0.0.19

# FrontendShared

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.3.

## Development server

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publish to NPM

go to dist/smartweb-frontend-shared and npm login. After login npm publish

## Link the library to test the package

go to dist/smartweb-frontend-shared and execute in terminal => npm link

check links => npm list -g

go to app directory, npm link [nome-da-library] --save

## Run the App and Library at the same time with link

Library terminal => ng build --watch

App terminal => ng serve
npm package: @smartworld-libs/uikit
Description: Set of UI components for smartworld projects
Latest version: 0.66.4

# 🌍 SmartWorld UIkit

[![Version](https://img.shields.io/npm/v/@smartworld-libs/uikit)](https://www.npmjs.com/package/@smartworld-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@smartworld-libs/uikit)](https://www.npmjs.com/package/@smartworld-libs/uikit)

SmartWorld UIkit is a set of React components and hooks used to build pages on SmartWorld's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @smartworld-libs/uikit`

## Setup

### Theme

Before using SmartWorld UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@smartworld-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@smartworld-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://smartworld2030.github.io/smartworld-toolkit/)
npm package: @smartx/dpp
Description: data pull push
Author: sschen86
Latest version: 1.0.3

# dpp
data pull push


### 示例
```js
const { object } = require('fly-utils')
const adapter = require('@smartx/adapter')
const dpp = require('dpp')
const request = dpp({
    apis: {
        // 接口配置项
    },
    baseURL: '',
    timeout: 2000,
    customConfigs: {
        reqa (value, valueType) { // 请求参数适配器
            if (valueType === 'function') {
                return value
            }
            if (valueType === 'object') {
                return adapter(value).input
            }
        },
        resa (value, valueType) { // 响应数据适配器
            if (valueType === 'function') {
                return value
            }
            if (valueType === 'object') {
                return adapter(value).input
            }
        },
        preventDefaultError: true,
        disabledCatch: true,
    },
    request (data, config) {
        if (config.reqa) {
            object.emptyAssign(data, config.reqa(data))
        }
    },
    response (resp, config) {
        const { data } = resp
        const { code } = data

        if (code === 1008) {
            throw Error('NO-LOGIN')
        }

        if (code !== 0) {
            throw Error(data.message)
        }
        // 业务数据是放在响应数据的data字段下的，这样处理让success直接使用业务数据
        resp.data = resp.data.data
    },
    success (data, config) {
        if (config.resa) {
            object.emptyAssgin(data, config.resa(data))
        }
    },
    failure (error, config) {
        if (config.preventDefaultError) {
            return
        }
        if (error.message === 'NO-LOGIN') {
            return alert('登录失效')
        }
        alert(error.message)
    },
})


```
npm package: @smartyamit/sample-react-library
Description: Made with create-react-library
Latest version: 1.0.0

# sample-react-library

> Made with create-react-library

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

## Install

```bash
npm install --save sample-react-library
```

## Usage

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

import MyComponent from 'sample-react-library'
import 'sample-react-library/dist/index.css'

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

## License

MIT © [](https://github.com/)
npm package: @smartyi/qqbot-helper
Description: QQ Bot OpenClaw辅助排障工具
Latest version: 0.0.1

# @smartyi/qqbot-helper

QQ Bot 辅助排障工具。

## 使用

使用 npx 直接运行（无需安装）：

```bash
npx @smartyi/qqbot-helper
```

## 开发

### 安装依赖

```bash
npm install
```

### 构建

```bash
npm run build
```

### 开发模式

```bash
npm run dev
```

### 本地测试

```bash
npm link
qqbot-helper
```

或直接运行：

```bash
npm run build
node dist/index.js
```

## License

MIT
npm package: @smartylavs/learnstorybook-design-system-demo
Description: Learn Storybook design system
Author: Adan Palacios
Latest version: 1.0.2

# The Learn Storybook design system

The Learn Storybook design system is a subset of the full [Storybook design system](https://github.com/storybookjs/design-system/), created as a learning resource for those interested in learning how to write and publish a design system using best in practice techniques.

Learn more at [Learn Storybook](https://learnstorybook.com).