open-index/open-npm huggingface dataset:
npm package: @huangapple/antd-lowcode-materials
Description: Antd for LowCode
Latest version: 1.0.4

<h2><img width="30" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"> Ant Design For Lowcode</h2>

[![NPM version][npm-image-antd]][npm-url-antd]

### [在线示例 / DEMO](https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.1.1/build/lowcode/index.html)

### 使用 / Usage
#### NPM
```js
const { material } from '@alilc/lowcode-engine';
const assets = require('@alilc/antd-lowcode-materials/build/lowcode/assets-prod.json');

// in GeneralWorkbench init
material.setAssets(assets);
```

#### CDN
```js
// in GeneralWorkbench init
const assets = await (await fetch(`https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.1.1/build/lowcode/assets-prod.json`)).json();
material.setAssets(assets);
```

[npm-image-antd]: https://img.shields.io/npm/v/@alilc/antd-lowcode-materials.svg?style=flat-square
[npm-url-antd]: http://npmjs.org/package/@alilc/antd-lowcode-materials
npm package: @huangapple/midway-http-proxy
Description: Midway Component for http proxy
Latest version: 3.8.1

## HTTP 代理组件

HTTP 代理组件

适用于 `@midwayjs/faas` 、`@midwayjs/web` 、`@midwayjs/koa` 和 `@midwayjs/express` 多种框架的 HTTP 代理组件，支持GET、POST等多种请求方法。

### Usage

1. 安装依赖

```bash
$ npm i @midwayjs/http-proxy --save
```

2. 在 configuration 中引入组件,
```ts
import * as proxy from '@midwayjs/http-proxy';
@Configuration({
  imports: [
    // ...other components
    proxy
  ],
})
export class AutoConfiguration {}
```

### 配置

```ts
export const httpProxy = {
  host: 'http://127.0.0.1',
  match: /\/assets\/(.*)/,
  target: 'http://127.0.0.1/$1',

  //额外的axios请求config, 会照搬过去
  extReqOptions:{
    //用来设置不校验https的ssl
    httpsAgent: new https.Agent({ rejectUnauthorized: false })
  }
}
```
npm package: @huangapple/node-wxapi
Description: > WXAPI的 ts版本实现
Latest version: 0.0.28

## 项目名称

> WXAPI的 ts版本实现

## 运行条件

```js
    //设置appid跟密钥， 然后就都能直接使用了。
WXAPIAPIBaseInstance.setGlobalConfig({ appId: "appid", appSecret: "appSecret" })
let { data } = await WXAPIAccountInstance.getAccountBasicInfo()
```

## 被动回复用户消息

```js
//生成回复文本的xml字符串
MessageGen.text({ toUser: "toUser", fromUser: "fromUser", content: "content" })

//这样就会返回如下xml
// <xml>
// <ToUserName><![CDATA[toUser]]></ToUserName>
// <FromUserName><![CDATA[fromUser]]></FromUserName>
// <CreateTime>1681565510</CreateTime>
//
// <MsgType><![CDATA[text]]></MsgType>
// <Content><![CDATA[content]]></Content>
//
// </xml>


//还有image, voice, video, music, news等
MessageGen.image({ toUser: "toUser", fromUser: "fromUser", mediaId: "mediaId" })
MessageGen.voice({ toUser: "toUser", fromUser: "fromUser", mediaId: "mediaId" })
MessageGen.video({
  toUser: "toUser",
  fromUser: "fromUser",
  mediaId: "mediaId",
  title: "title",
  description: "description"
})
MessageGen.music({
  toUser: "toUser",
  fromUser: "fromUser",
  thumbMediaId: "thumbMediaId",
  hqMusicUrl: "hqMusicUrl",
  musicUrl: "musicUrl",
  description: "description",
  title: "title"
})
MessageGen.news({
  toUser: "toUser",
  fromUser: "fromUser",
  articleCount: 2,
  articles: [
    { title: "title1", url: "url1", picUrl: "picUrl1", description: "description1" },
    { title: "title2", url: "url2", picUrl: "picUrl2", description: "description2" }
  ]
})
```

## 微信基础消息

### 签名校验

```js
    let payload = {
  signature: "9c904127b5278e868d97bd04b451668804e51693",
  timestamp: 1681552030,
  nonce: "1937606791"
}

//返回签名校验是否成功
let ok = WXUtil.checkSignature(payload, "1grTZZqtWaLDhjR61xGrpg50R0");
```

### 消息XML转json

```js
    let xml = `<xml><ToUserName><![CDATA[gh_fd35603a3406]]></ToUserName>
<FromUserName><![CDATA[oAkeW05qqiR8NOzzA1Und3ufh-Tg]]></FromUserName>
<CreateTime>1681563392</CreateTime>
<MsgType><![CDATA[text]]></MsgType>
<Content><![CDATA[小家庭]]></Content>
<MsgId>24074200986519996</MsgId>
</xml>
`

let message: MessagePayload = WXUtil.xml2json(xml)
console.log(JSON.stringify(message, null, 4))
//打印以下结构信息
let temp = {
  "ToUserName": "gh_fd35603a3406",
  "FromUserName": "oAkeW05qqiR8NOzzA1Und3ufh-Tg",
  "CreateTime": 1681563392,
  "MsgType": "text",
  "Content": "小家庭",
  "MsgId": 24074200986519996
}

```