# postcss-border-shortcut

> PostCSS plugin for assign default border type if not expressed

Latest version **1.0.0** (published 2018-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-border-shortcut
pnpm add postcss-border-shortcut
yarn add postcss-border-shortcut
bun add postcss-border-shortcut
```

## 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 | 2018-03-30 |
| First published | 2016-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Michele Mazzucco |
| Maintainers | michelemazzucco |
| Keywords | postcss, css, postcss-plugin, border, shortcut, border-type |

## Links

- npm: https://www.npmjs.com/package/postcss-border-shortcut
- Repository: https://github.com/michelemazzucco/postcss-border-shortcut
- Issues: https://github.com/michelemazzucco/postcss-border-shortcut/issues
- npm.io page: https://npm.io/package/postcss-border-shortcut

## Dependencies (1)

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

## 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) — 2018-03-30
- 0.1.0 — 2016-11-07
- 0.0.6 — 2016-08-26
- 0.0.5 — 2016-06-22
- 0.0.4 — 2016-06-09
- 0.0.3 — 2016-05-27
- 0.0.2 — 2016-05-23
- 0.0.1 — 2016-05-20

## README

# postcss-border-shortcut [![Build Status][ci-img]][ci] [![NPM Version][npm-img]][npm] [![Dependency Status][david-dm-img]][david-dm]

PostCSS plugin for assign default border type if not expressed.

```css
/* Before */

.one {
  border: 1px #E7E7E7;
}

.two {
  border-top: 1px #707C80;
}

.three {
  border-bottom: #423424;
}

/* After */

.one {
  border: 1px solid #E7E7E7;
}

.two {
  border-top: 1px solid #707C80;
}

.three {
  border-bottom: 1px solid #423424;
}
```

## Installation
```
$ npm install postcss-border-shortcut --save-dev
```

## Usage

### JS API
```js
const postcss = require('postcss');
postcss([ require('postcss-border-shortcut') ])
```

See [PostCSS] docs for other examples.

## Options
### borderType
Type: `string` Default: `solid`

You can define a default `border`style property, like: `solid`, `dashed`, `dotted`,  `double`, ect...

```js
// Set in build tool, etc.
.border({
  borderType: 'dashed'
})
```

[PostCSS]:      https://github.com/postcss/postcss
[ci-img]:       https://travis-ci.org/michelemazzucco/postcss-border-shortcut.svg
[ci]:           https://travis-ci.org/michelemazzucco/postcss-border-shortcut
[npm]:          https://www.npmjs.com/package/postcss-border-shortcut
[npm-img]:      https://img.shields.io/npm/v/postcss-border-shortcut.svg
[david-dm]:     https://david-dm.org/michelemazzucco/postcss-border-shortcut
[david-dm-img]: https://david-dm.org/michelemazzucco/postcss-border-shortcut.svg

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