# karma-typescript-postcss-transform

> PostCSS runner plugin

Latest version **5.5.4** (published 2023-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-typescript-postcss-transform
pnpm add karma-typescript-postcss-transform
yarn add karma-typescript-postcss-transform
bun add karma-typescript-postcss-transform
```

## 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 | 5.5.4 |
| Published | 2023-05-01 |
| First published | 2017-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 314 |
| Author | monounity |
| Maintainers | erikbarke, monounity |
| Keywords | karma-typescript, postcss runner, typescript |

## Links

- npm: https://www.npmjs.com/package/karma-typescript-postcss-transform
- Repository: https://github.com/monounity/karma-typescript
- Homepage: https://github.com/monounity/karma-typescript#readme
- Issues: https://github.com/monounity/karma-typescript/issues
- npm.io page: https://npm.io/package/karma-typescript-postcss-transform

## Dependencies (1)

- [log4js](https://npm.io/package/log4js.md) ^6.3.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 5.5.4 (latest) — 2023-05-01
- 5.0.0-beta.3 (beta) — 2020-01-12
- 5.5.3 — 2022-01-12
- 5.5.2 — 2021-08-19
- 5.5.1 — 2021-03-25
- 5.5.0 — 2021-03-09
- 5.4.0 — 2021-02-12
- 5.3.0 — 2021-02-11
- 5.2.0 — 2020-09-17
- 5.1.0 — 2020-08-12
- 5.0.3 — 2020-05-21
- 5.0.2 — 2020-04-04
- 5.0.1 — 2020-03-20
- 5.0.0 — 2020-03-07
- 5.0.0-beta.1 — 2020-01-07
- … 8 more at https://npm.io/package/karma-typescript-postcss-transform/versions

## README

# karma-typescript-postcss-transform

<a href="https://www.npmjs.com/package/karma-typescript-postcss-transform"><img alt="Npm Version" src="https://img.shields.io/npm/v/karma-typescript-postcss-transform.svg"></a>
<a href="https://travis-ci.org/monounity/karma-typescript"><img alt="Travis Status" src="https://img.shields.io/travis/monounity/karma-typescript/master.svg?label=travis"></a>
<a href="https://ci.appveyor.com/project/monounity/karma-typescript"><img alt="Appveyor Status" src="https://img.shields.io/appveyor/ci/monounity/karma-typescript/master.svg?label=appveyor"></a>

> Karma-Typescript :heart: PostCSS

This plugin is a generic [PostCSS runner](http://postcss.org/), which transforms CSS with JavaScript on the fly when running tests with [karma-typescript](https://github.com/monounity/karma-typescript).

## Installation

```
$ npm install --save-dev karma-typescript-postcss-transform
```

## Configuration

In the `karma-typescript` section of `karma.conf.js`:

```javascript
karmaTypescriptConfig: {
    bundlerOptions: {
        transforms: [
            require("karma-typescript-postcss-transform")([require("some-plugin")])
        ]
    }
}
```

## Options

Custom options can be passed to the runner in the first argument when calling the plugin:

- An array of PostCSS plugins
- [PostCSS options](https://github.com/postcss/postcss). Optional, but the properties `to`
  and `from` are _always_ set to the filename of the CSS file automatically.
- A `RegExp` object to filter which files should be processed.<br/>
  Optional, defaults to `/\.css$/`.

An example using the plugin `autoprefixer` with inline sourcemaps and a `RegExp` filter:

```javascript
karmaTypescriptConfig: {
    bundlerOptions: {
        transforms: [
            require("karma-typescript-postcss-transform")(
                [require("autoprefixer")], { map: { inline: true } }, /\.css$/
            )
        ]
    }
}
```

## Licensing

This software is licensed with the MIT license.

© 2016-2021 Erik Barke, Monounity

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