lib/index.js
function attributes(node) {
    var obj = {};
    each(function(attr) {
      obj[attr.name] = attr.value;
    }, node.attributes);
    return obj;
  }
function attributes(node) {
    var obj = {};
    each(function(attr) {
      obj[attr.name] = attr.value;
    }, node.attributes);
    return obj;
  }
function attributes ( node ) { var obj = { } ; each ( function ( attr ) { obj [ attr . name ] = attr . value ; } , node . attributes ) ; return obj ; }
DOM node attributes as object.

@param {Element}
@return {Object}
DOM node attributes as object .