https://github.com/npm-dom/dom-style
Library to manipulate CSS properties
https://github.com/npm-dom/dom-style
Last synced: about 1 month ago
JSON representation
Library to manipulate CSS properties
- Host: GitHub
- URL: https://github.com/npm-dom/dom-style
- Owner: npm-dom
- Created: 2013-09-14T10:56:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-23T08:38:04.000Z (over 9 years ago)
- Last Synced: 2025-09-13T04:10:17.536Z (3 months ago)
- Language: JavaScript
- Homepage: http://npm.im/dom-style
- Size: 7.81 KB
- Stars: 29
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome_frontend_development_resources - dom-style - Library to manipulate CSS properties. (DOM / React Components)
- awesome - dom-style - Library to manipulate CSS properties. (DOM / React Components)
README
## dom-style
Inline CSS manipulation library
```js
var style = require('dom-style')
style(document.body, 'background-color', 'red')
style(document.body, {
'font-color': 'yellow',
'border': '5px solid black'
})
```
## Install
```bash
$ npm install dom-style
```