1.1.0 • Published 8 years ago

attrs v1.1.0

Weekly downloads
34
License
MIT
Repository
github
Last release
8 years ago

attrs

Object as DOM attributes.

usage

var attrs = require('attrs');
var bool = true;
var input = document.createElement('input');

attrs(input, {
  id: 'input',
  checked: true,
  class: ['hello', 'world'],
  style : {
    top: 100 + 'px',
    bottom: 200 + 'px'
  },
  type: function() {
    return bool ? 'radio' : 'checkbox';
  }
})
1.1.0

8 years ago

1.0.0

8 years ago

0.0.1-security

8 years ago

2.0.0

8 years ago

0.0.0

11 years ago