JSPM

form-input-list

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q39828F
  • License MIT

Parse html and extract all the form input fields with values.

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

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)