# postcss-format-less-mixins

> PostCSS plugin to format Less mixin calls where Stylefmt fails

Latest version **1.0.0** (published 2017-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-format-less-mixins
pnpm add postcss-format-less-mixins
yarn add postcss-format-less-mixins
bun add postcss-format-less-mixins
```

## 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.0.0 |
| Published | 2017-09-01 |
| First published | 2017-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Pacheco |
| Maintainers | frontendauteur |
| Keywords | postcss, css, postcss-plugin, style, coding style, mixins, less, mixin |

## Links

- npm: https://www.npmjs.com/package/postcss-format-less-mixins
- Repository: https://github.com/frontendauteur/postcss-format-less-mixins
- Issues: https://github.com/frontendauteur/postcss-format-less-mixins/issues
- npm.io page: https://npm.io/package/postcss-format-less-mixins

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^6.0.1
- [postcss-less](https://npm.io/package/postcss-less.md) ^1.1.0

## 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

- 1.0.0 (latest) — 2017-09-01

## README

# PostCSS Format Less Mixins [![Build Status][ci-img]][ci]

[PostCSS] plugin to format Less mixin calls where [stylefmt] fails.

[stylefmt]: https://github.com/morishitter/stylefmt
[PostCSS]:  https://github.com/postcss/postcss
[ci-img]:   https://travis-ci.org/frontendauteur/postcss-format-less-mixins.svg
[ci]:       https://travis-ci.org/frontendauteur/postcss-format-less-mixins

## Installation

```js
npm install postcss-format-less-mixins
```

## Example

```less
/* Input Example */
.a {

    .myMixin()
    ;
}
.b {
    background: rebeccapurple;

    .myMixin()
    ;
}
.c {
    .myOtherMixin()
    ;

    .myMixin()
    ;
}
.d {

    .myOtherMixin()
    ;

    .myMixin()
    ;
}
.e {
    background: rebeccapurple;

    .f {
        background: transparent;

        .myMixin()
        ;
    }
}
```

```less
/* Output Example */
.a {
    .myMixin();
}
.b {
    background: rebeccapurple;
    .myMixin();
}
.c {
    .myOtherMixin();
    .myMixin();
}
.d {
    .myOtherMixin();
    .myMixin();
}
.e {
    background: rebeccapurple;

    .f {
        background: transparent;
        .myMixin();
    }
}
```

## Usage

```js
postcss([
    require('postcss-format-less-mixins')
]).process(YOUR_LESS, {
    syntax: require('postcss-less')
})
```

Use Stylefmt **before** using this plugin.

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