Package Exports
- form-input-list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (form-input-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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)