# posthtml-transform-miniprogram

> posthtml-transform-miniprogram

Latest version **0.8.3** (published 2020-09-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install posthtml-transform-miniprogram
pnpm add posthtml-transform-miniprogram
yarn add posthtml-transform-miniprogram
bun add posthtml-transform-miniprogram
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.3 |
| Published | 2020-09-22 |
| First published | 2018-10-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 52.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 蒋瑶 |
| Maintainers | landn172 |

## Links

- npm: https://www.npmjs.com/package/posthtml-transform-miniprogram
- Repository: https://github.com/landn172/jgb-transform
- Homepage: https://github.com/jgbjs/jgb-transform/tree/master/packages/posthtml-transform-miniprogram#readme
- Issues: https://github.com/landn172/jgb-transform/issues
- npm.io page: https://npm.io/package/posthtml-transform-miniprogram

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11

## Recent versions

- 0.8.3 (latest) — 2020-09-22
- 0.9.7 (beta) — 2020-11-27
- 0.9.6 — 2020-11-24
- 0.9.5 — 2020-11-13
- 0.9.4 — 2020-10-29
- 0.9.3 — 2020-10-22
- 0.9.2 — 2020-10-19
- 0.9.1 — 2020-10-16
- 0.9.0 — 2020-10-16
- 0.8.4-alpha.0 — 2020-09-29
- 0.8.2 — 2020-07-03
- 0.8.2-alpha.0 — 2020-06-23
- 0.8.1-alpha.0 — 2020-06-16
- 0.8.0 — 2020-06-15
- 0.7.0 — 2020-06-11
- … 13 more at https://npm.io/package/posthtml-transform-miniprogram/versions

## README

# `posthtml-transform-miniprogram`

> 利用 posthtml 转换到对应的小程序

## Usage

> target 可选参数：swan，aliapp（my）

```js
const posthtml = require('posthtml');
const transform = require('posthtml-transform-miniprogram');

posthtml()
  .use(
    transform({
      source: 'wx', // default
      target: 'swan' // default
    })
  )
  .process(received, {
    closingSingleTag: 'slash'
  })
  .then(result => result.html);
```

---
_Source: https://npm.io/package/posthtml-transform-miniprogram · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
