# add-px-to-style

> Will add px to the end of style values which are Numbers

Latest version **1.0.0** (published 2015-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install add-px-to-style
pnpm add add-px-to-style
yarn add add-px-to-style
bun add add-px-to-style
```

## 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 | 2015-11-30 |
| First published | 2015-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mikko Haapoja |
| Maintainers | mikkoh |
| Keywords | css,px,style,pixel,value |

## Links

- npm: https://www.npmjs.com/package/add-px-to-style
- Repository: https://github.com/mikkoh/add-px-to-style
- Issues: https://github.com/mikkoh/add-px-to-style/issues
- npm.io page: https://npm.io/package/add-px-to-style

## Recent versions

- 1.0.0 (latest) — 2015-11-30

## README

# add-px-to-style

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

Will add px to the end of style values which are Numbers. The following style properties will not have px added.

- animationIterationCount
- boxFlex
- boxFlexGroup
- boxOrdinalGroup
- columnCount
- fillOpacity
- flex
- flexGrow
- flexPositive
- flexShrink
- flexNegative
- flexOrder
- gridRow
- gridColumn
- fontWeight
- lineClamp
- lineHeight
- opacity
- order
- orphans
- stopOpacity
- strokeDashoffset
- strokeOpacity
- strokeWidth
- tabSize
- widows
- zIndex
- zoom

## Usage
```
var addPxToStyle = require('add-px-to-style');

addPxToStyle('top', 22); // '22px'
addPxToStyle('zIndex', 3); // 3
```

[![NPM](https://nodei.co/npm/add-px-to-style.png)](https://www.npmjs.com/package/add-px-to-style)

## License

MIT, see [LICENSE.md](http://github.com/mikkoh/add-px-to-style/blob/master/LICENSE.md) for details.

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