style-dom

Library to manipulate CSS via DOM

npm install style-dom
1 downloads in the last day
11 downloads in the last week
111 downloads in the last month

style-dom

Library to manipulate CSS via DOM

style = require('style-dom')

style(document.body, 'background-color', 'red')

style(document.body, {
  'font-color': 'yellow',
  'border': '5px solid black'
})

style.show(document.body.children[0])
style.hide(document.body.children[1])

Install

$ npm install style-dom
npm loves you