open-index/open-npm huggingface dataset:
npm package: @lantsang/nestjs-wechat-pay
Description: 自用nestjs 微信支付插件
Author: Iric
Latest version: 1.0.2

# Nestjs 微信支付插件

注意：<font color="#dd0000">仍在开发中，目前仅在内部使用</font><br /> 

## 使用说明

外部人员仅供参考，请不要用于生产环境，因此导致的事故后果请自行承担。

### 支持环境

* TS target es2020
* node >= 14.x
* NestJS 7.x

### 安装

 `$ npm i @lantsang/nestjs-wechat-pay`

or 

 `$ yarn add @lantsang/nestjs-wechat-pay`

推荐使用yarn

### 配置

#### 同步方式

``` typescript
import { Module } from '@nestjs/common';
import { readFileSync } from 'fs';
import { WechatPayModule } from '@lantsang/nestjs-wechat-pay';

@Module({
  imports: [
    WechatPayModule.forRoot({
      appId: '微信支付应用ID',
      mchId: '微信支付商户ID',
      apiKeyV3: '微信商户APIv3密钥',
      publicKey: readFileSync('公钥路径'),
      privateKey: readFileSync('私钥路径')
    })
  ]
})
export class AppModule {}
```

#### 异步方式

``` typescript
import { Module } from '@nestjs/common';
import { readFileSync } from 'fs';
import { WechatPayModule } from '@lantsang/nestjs-wechat-pay';
import { ConfigModule } from './config/config.module';
import { CONFIG_PROVIDER } from './config/constants/config.constant';
import { ConfigService } from './config/services/config.service';

@Module({
  imports: [
    WechatPayModule.forRootAsync({
      useFactory: (configService: ConfigService) => ({
        appId: configService.wechatPay.appId,
        mchId: configService.wechatPay.mchId,
        apiKeyV3: configService.wechatPay.apiKeyV3,
        publicKey: readFileSync(process.cwd() + configService.wechatPay.publicKeyPath),
        privateKey: readFileSync(process.cwd() + configService.wechatPay.privateKeyPath)
      }),
      inject: [CONFIG_PROVIDER]
    }),
    ConfigModule
  ]
})
export class AppModule {}
```

> 提示：异步注册方式采用的 `ConfigModule` 并不是 `NestJS` 自带的配置功能，而是我基于官方自己设计的一套，具体实现请参考笔记：[NestJS配置模块设计](https://github.com/IricBing/note/blob/master/NodeJS/NestJS/%E7%A8%8B%E5%BA%8F%E8%AE%BE%E8%AE%A1/%E9%85%8D%E7%BD%AE%E6%A8%A1%E5%9D%97%E8%AE%BE%E8%AE%A1/README.md)

## 文档地址

* [私有Gitlab](https://gitlab.lantsang.cn/nestjs-plugins/nestjs-wechat-pay/tree/master/docs)
npm package: @lanun/antarabangsa
Description: Internationalization (i18n) library for React apps
Latest version: 0.1.1

# @lanun/antarabangsa

[![Work In Progress](https://img.shields.io/badge/work_in_progress-yellow)](https://github.com/syfqpie/lanun)

<p align="center">
  <img src="../../apps/antarabangsa-docs/public/logo/flag.png" alt="App Screenshot" width="200" />
</p>

Internationalization (i18n) library for React apps.

## Table of Contents

- [Installation](#installation)

## Installation

To add **@lanun/antarabangsa** to your project, install it via npm (or your preferred package manager):

```bash
npm install @lanun/antarabangsa

or

yarn add @lanun/antarabangsa

or

pnpm add @lanun/antarabangsa
```

## Usage

Check out the [documentation](https://antarabangsa.cendol.dev)
npm package: @lanun/antarabangsa-next
Description: Internationalization (i18n) library for Next.js apps
Latest version: 1.0.1

# @lanun/antarabangsa-next

[![Work In Progress](https://img.shields.io/badge/work_in_progress-yellow)](https://github.com/syfqpie/lanun)

<p align="center">
  <img src="../../apps/antarabangsa-docs/public/logo/flag.png" alt="App Screenshot" width="200" />
</p>

Internationalization (i18n) library for Next.js apps.

## Table of Contents

- [Installation](#installation)

## Installation

To add **@lanun/antarabangsa-next** to your project, install it via npm (or your preferred package manager):

```bash
npm install @lanun/antarabangsa @lanun/antarabangsa-next

or

yarn add @lanun/antarabangsa @lanun/antarabangsa-next

or

pnpm add @lanun/antarabangsa @lanun/antarabangsa-next
```

## Usage

Check out the [documentation](https://antarabangsa.cendol.dev)