Skip to content

darkowlzz/form-input-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

form-input-list

Build Status

Get form input fields with values from a given html doc.

To use

  1. Install it:
```bash
$ npm i form-input-list
```
  1. 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)

About

Parse html and extract all the form input element list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published