form-input-list
v0.0.5
Published
Parse html and extract all the form input fields with values.
Downloads
4
Maintainers
Readme
form-input-list
Get form input fields with values from a given html doc.
To use
- Install it:
```bash
$ npm i form-input-list
```
- Require it and use:
```js
var formInput = require('form-input-list').formInput;
var html = ''; // some html text
formInput(html) // returns a promise
.then(function (list) { // promise is completed
console.log(list);
});
// [ { formIndex: 0, inputs: [ 'mail', 'username' ] },
// { formIndex: 1, inputs: [ 'msg' ] } ]
```
License
MIT © 2015 Sunny (darkowlzz)