# gulp-px2rpx

> 微信小程序 px转换为rpx

Latest version **0.2.2** (published 2017-08-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-px2rpx
pnpm add gulp-px2rpx
yarn add gulp-px2rpx
bun add gulp-px2rpx
```

## 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.2.2 |
| Published | 2017-08-29 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | 炒饭 |
| Maintainers | x_xsp |
| Keywords | 微信小程序 |

## Links

- npm: https://www.npmjs.com/package/gulp-px2rpx
- Repository: https://github.com/cytle/gulp-px2rpx
- Homepage: https://github.com/cytle/gulp-px2rpx#readme
- Issues: https://github.com/cytle/gulp-px2rpx/issues
- npm.io page: https://npm.io/package/gulp-px2rpx

## Dependencies (3)

- [extend](https://npm.io/package/extend.md) ^3.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8

## Recent versions

- 0.2.2 (latest) — 2017-08-29
- 0.2.1 — 2017-08-17
- 0.2.0 — 2017-08-17
- 0.1.0 — 2017-08-17
- 0.0.4 — 2017-06-20
- 0.0.3 — 2017-06-20
- 0.0.2 — 2017-06-20

## README

# gulp-px2rpx

微信小程序 px转换为rpx

## Installation

```shell
$ npm install --save-dev gulp-px2rpx
```

## Usage

```js
const gulp = require('gulp');
const px2rpx = require('gulp-px2rpx');

gulp.task('default', function () {
  gulp.src('./css/*.css')
    .pipe(px2rpx({
        screenWidth: 750, // 设计稿屏幕, 默认750
        wxappScreenWidth: 750, // 微信小程序屏幕, 默认750
        remPrecision: 6 // 小数精度, 默认6
    }))
    .pipe(gulp.dest('./wxappCss'))
});
```

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