Attribute parser for html tag
npm install html-attribute-parser[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
```
npm install --save html-attribute-parser
`js
var htmlAttributeParser = require('html-attribute-parser');
let text = '';
let tag = htmlAttributeParser(text)
console.log(tag);
/* return
{ tagName: 'button',
attributes:
{ attr: true,
class: 'btn btn-primary',
id: 'submit',
'on-click': 'callFunction()' },
value: 'Hello world' }
*/
``
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
[npm-image]: https://badge.fury.io/js/html-attribute-parser.svg
[npm-url]: https://npmjs.org/package/html-attribute-parser
[travis-image]: https://travis-ci.org/nghiattran/html-attribute-parser.svg?branch=master
[travis-url]: https://travis-ci.org/nghiattran/html-attribute-parser
[daviddm-image]: https://david-dm.org/nghiattran/html-attribute-parser.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/nghiattran/html-attribute-parser
[coveralls-image]: https://coveralls.io/repos/nghiattran/html-attribute-parser/badge.svg
[coveralls-url]: https://coveralls.io/github/nghiattran/html-attribute-parser