# code42day-css

> Simple CSS manipulation.

Latest version **0.3.1** (published 2015-09-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install code42day-css
pnpm add code42day-css
yarn add code42day-css
bun add code42day-css
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2015-09-17 |
| First published | 2015-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Ian Storm Taylor |
| Maintainers | pirxpilot |
| Keywords | browser, css, style, computed |

## Links

- npm: https://www.npmjs.com/package/code42day-css
- Repository: https://github.com/ianstormtaylor/css
- Homepage: https://github.com/ianstormtaylor/css#readme
- Issues: https://github.com/ianstormtaylor/css/issues
- npm.io page: https://npm.io/package/code42day-css

## Dependencies (3)

- [to-camel-case](https://npm.io/package/to-camel-case.md) ^0.2.1
- [component-type](https://npm.io/package/component-type.md) ^1.1.0
- [computed-style-component](https://npm.io/package/computed-style-component.md) ^0.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

- 0.3.1 (latest) — 2015-09-17

## README

# css
  
  Simple CSS manipulation.

## Installation

    $ component install ianstormtaylor/css

## Example

```js
var css = require('css');
var div = document.getElementById('header');

// get
css(div, 'position'); // "relative"

// set one at a time
css(div, 'position', 'fixed');

// set many at a time
css(div, {
  position: 'fixed',
  top: '24px'
});

// use dashes if you want
css(div, 'font-size', '16px');

// you can omit "px" and it will be added automatically
css(div, 'font-size', 16);
```

## API

### css(el, property)
  
  Get the current value of a CSS `property` of an `el`.

### css(el, property, value)

  Set the `value` of a CSS `property` on an `el`.

### css(el, properties)

  Set the value of a dictionary of `properties` on an `el`.

## License

  MIT

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