# gulp-pxtorem

> A gulp plugin for postcss-pxtorem

Latest version **3.0.0** (published 2017-05-22) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.0 |
| Published | 2017-05-22 |
| First published | 2014-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 25 |
| Author | cuth |
| Maintainers | cuth |
| Keywords | css, rem, pixel, px, gulp, gulpplugin |

## Links

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

## Dependencies (4)

- [postcss](https://npm.io/package/postcss.md) ^5.0.14
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [postcss-pxtorem](https://npm.io/package/postcss-pxtorem.md) ^4.0.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2017-05-22
- 2.0.0 — 2016-01-29
- 1.0.1 — 2015-02-03
- 1.0.0 — 2015-02-03
- 0.1.0 — 2014-08-14
- 0.0.1 — 2014-07-03
- 0.0.0 — 2014-07-03

## README

# gulp-pxtorem [![NPM version](https://badge.fury.io/js/gulp-pxtorem.svg)](http://badge.fury.io/js/gulp-pxtorem)

This is a Gulp plugin for [postcss-pxtorem](https://github.com/cuth/postcss-pxtorem).

### Installation

```shell
npm install gulp-pxtorem --save-dev
```

### Example

```js
var pxtorem = require('gulp-pxtorem');

gulp.task('css', function() {
    gulp.src('css/**/*.css')
        .pipe(pxtorem())
        .pipe(gulp.dest('css'));
});
```

### Options

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

```js
var pxtorem = require('gulp-pxtorem');

var pxtoremOptions = {
    replace: false
};

var postcssOptions = {
    map: true  
};

gulp.task('css', function() {
    gulp.src('css/**/*.css')
        .pipe(pxtorem(pxtoremOptions, postcssOptions))
        .pipe(gulp.dest('css'));
});
```

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