# gulp-px2rem

> A gulp plugin for node-px2rem

Latest version **1.1.4** (published 2021-01-02) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2021-01-02 |
| First published | 2014-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Gergely Kovács |
| Maintainers | ggkovacs |
| Keywords | css, parser, postprocessor, rem, gulp, gulpplugin, px |

## Links

- npm: https://www.npmjs.com/package/gulp-px2rem
- Repository: https://github.com/ggkovacs/gulp-px2rem
- Issues: https://github.com/ggkovacs/gulp-px2rem/issues
- npm.io page: https://npm.io/package/gulp-px2rem

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^4.0.2
- [node-px2rem](https://npm.io/package/node-px2rem.md) ^2.0.5
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2021-01-02
- 1.1.3 — 2020-05-27
- 1.1.2 — 2019-07-25
- 1.1.1 — 2019-06-22
- 1.1.0 — 2019-01-22
- 1.0.13 — 2018-07-28
- 1.0.12 — 2018-03-15
- 1.0.11 — 2017-01-11
- 1.0.10 — 2016-07-13
- 1.0.9 — 2016-05-01
- 1.0.8 — 2016-04-03
- 1.0.7 — 2016-02-25
- 1.0.6 — 2016-01-31
- 1.0.5 — 2015-12-25
- 1.0.4 — 2015-11-13
- … 6 more at https://npm.io/package/gulp-px2rem/versions

## README

# [gulp](https://github.com/gulpjs/gulp)-px2rem [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url]
Version: **1.1.4**

This is a Gulp plugin for [node-px2rem](https://github.com/ggkovacs/node-px2rem).

## Installation

Run `npm install gulp-px2rem`

## Usage

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

gulp.task('css', () => {
  return gulp.src('css/**/*.css')
    .pipe(px2rem())
    .pipe(gulp.dest('css'));
});
```

## Options

Pass in two option objects. The first one for [node-px2rem](https://github.com/ggkovacs/node-px2rem) options, the second for [postcss](https://github.com/postcss/postcss) options.

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

const px2remOptions = {
  replace: false
};

const postCssOptions = {
  map: true
};

gulp.task('css', () => {
  return gulp.src('css/**/*.css')
    .pipe(px2rem(px2remOptions, postCssOptions))
    .pipe(gulp.dest('css'));
});
```

# License
MIT © 2021 Gergely Kovács (gg.kovacs@gmail.com)

[npm-image]: https://badge.fury.io/js/gulp-px2rem.svg
[npm-url]: https://npmjs.org/package/gulp-px2rem
[daviddm-image]: https://david-dm.org/ggkovacs/gulp-px2rem.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/ggkovacs/gulp-px2rem

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