# postcss-flex-expand

> Postcss plugin that expands flex to flex-grow,flex-shring,flex-basis.

Latest version **1.1.0** (published 2020-06-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install postcss-flex-expand
pnpm add postcss-flex-expand
yarn add postcss-flex-expand
bun add postcss-flex-expand
```

## 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.0 |
| Published | 2020-06-16 |
| First published | 2020-06-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lzq4047 |
| Maintainers | lzq4047 |
| Keywords | flex, flexibility |

## Links

- npm: https://www.npmjs.com/package/postcss-flex-expand
- Repository: https://github.com/lzq4047/postcss-flex-expland
- Homepage: https://github.com/lzq4047/postcss-flex-expland#readme
- Issues: https://github.com/lzq4047/postcss-flex-expland/issues
- npm.io page: https://npm.io/package/postcss-flex-expand

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^7.0.32

## Recent versions

- 1.1.0 (latest) — 2020-06-16
- 1.0.0 — 2020-06-15

## README

# postcss-flex-expland

> resolve [flexibility](https://github.com/jonathantneal/flexibility) cannot calculate `flex: 1;`

Postcss plugin that explands flex to flex-grow,flex-shrink,flex-basis.


## Install

```bash
# use npm
npm install --save-dev postcss-flex-expand
```

or

```bash
# use yarn
yarn add --save-dev postcss-flex-expand
```

## Usage

```js
const postcss = require('postcss');
const flexExpand = require('postcss-flex-expand');

postcss([
    flexExpand()
])
```

```css
/* before */
.flex-item {
    flex: 1;
}

/* after */
.flex-item {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    flex: 1;
}
```

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