├── .gitignore
├── .npmrc
├── .travis.yml
├── CHANGES.md
├── LICENSE
├── README.md
├── nwb.config.js
├── package.json
├── src
└── index.js
└── test
├── fixture.js
└── index.test.js
/.gitignore:
--------------------------------------------------------------------------------
1 | /coverage
2 | /demo/dist
3 | /es
4 | /lib
5 | /node_modules
6 | /umd
7 | npm-debug.log*
8 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 | node_js:
5 | - 8
6 |
7 | cache:
8 | directories:
9 | - node_modules
10 |
11 | before_install:
12 | - npm install codecov.io coveralls
13 |
14 | after_success:
15 | - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
16 | - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
17 |
18 | branches:
19 | only:
20 | - master
21 |
--------------------------------------------------------------------------------
/CHANGES.md:
--------------------------------------------------------------------------------
1 | # 3.0.0 / 2020-03-10
2 |
3 | **Breaking:** Checkboxes without a `value` attribute will now be `true` rather than defaulting to `'on'`.
4 |
5 | Added: `includeDisabled` option for `getFormData()` and `getFieldData()`.
6 |
7 | # 2.0.0 / 2018-01-02
8 |
9 | **Breaking:** Renamed `getNamedFormElementData()` to `getFieldData()`.
10 |
11 | The ES modules build now uses a named export for `getFieldData()`.
12 |
13 | # 1.2.5 / 2016-01-02
14 |
15 | Added ES6 modules build.
16 |
17 | # 1.2.4 / 2015-11-12
18 |
19 | Changed UMD build directory.
20 |
21 | # 1.2.3 / 2015-11-08
22 |
23 | Changed how the module is published to npm.
24 |
25 | # 1.2.2 / 2015-04-27
26 |
27 | Fixed: Ignore form elements with empty names in `getFormData()`; don't throw on
28 | empty element names in `getNamedFormElementData()`
29 | [[#3](https://github.com/insin/get-form-data/issues/3)]
30 |
31 | # 1.2.1 / 2015-03-11
32 |
33 | Fixed: Ignore any `