{"_id":"append-field","_rev":"381670","name":"append-field","description":"A [W3C HTML JSON forms spec](http://www.w3.org/TR/html-json-forms/) compliant field appender (for lack of a better name). Useful for people implementing `application/x-www-form-urlencoded` and `multipart/form-data` parsers.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"linusu","email":""}],"time":{"modified":"2021-08-04T02:15:43.000Z","created":"2015-05-03T14:46:59.304Z","2.0.0":"2021-07-24T13:35:42.160Z","1.0.0":"2016-02-14T14:47:56.413Z","0.1.0":"2015-05-03T14:46:59.304Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/LinusU/node-append-field.git"},"versions":{"2.0.0":{"name":"append-field","version":"2.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/node-append-field.git"},"type":"module","exports":"./index.js","scripts":{"test":"standard && mocha && ts-readme-generator --check"},"devDependencies":{"mocha":"^8.4.0","standard":"^16.0.3","testdata-w3c-json-form":"^0.2.0","ts-readme-generator":"^0.5.2"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"gitHead":"989587c47718f93eb9dc516ea89503fd179aa298","description":"A [W3C HTML JSON forms spec](http://www.w3.org/TR/html-json-forms/) compliant field appender (for lack of a better name). Useful for people implementing `application/x-www-form-urlencoded` and `multipart/form-data` parsers.","bugs":{"url":"https://github.com/LinusU/node-append-field/issues"},"homepage":"https://github.com/LinusU/node-append-field#readme","_id":"append-field@2.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"shasum":"5997b4468ec8b87d3344cbe9af244a6853b9f416","size":3066,"noattachment":false,"key":"/append-field/-/append-field-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-field/download/append-field-2.0.0.tgz"},"_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"directories":{},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-field_2.0.0_1627133741997_0.05348574464682576"},"_hasShrinkwrap":false,"publish_time":1627133742160,"_cnpm_publish_time":1627133742160},"1.0.0":{"name":"append-field","version":"1.0.0","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"main":"index.js","devDependencies":{"mocha":"^2.2.4","standard":"^6.0.5","testdata-w3c-json-form":"^0.2.0"},"scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-append-field.git"},"gitHead":"4e103efe352cfcb072366e3f43aa355c0932bace","description":"A [W3C HTML JSON forms spec](http://www.w3.org/TR/html-json-forms/) compliant field appender (for lack of a better name). Useful for people implementing `application/x-www-form-urlencoded` and `multipart/form-data` parsers.","bugs":{"url":"https://github.com/LinusU/node-append-field/issues"},"homepage":"https://github.com/LinusU/node-append-field#readme","_id":"append-field@1.0.0","_shasum":"1e3440e915f0b1203d23748e78edd7b9b5b43e56","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"linusu","email":""}],"dist":{"shasum":"1e3440e915f0b1203d23748e78edd7b9b5b43e56","size":2768,"noattachment":false,"key":"/append-field/-/append-field-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-field/download/append-field-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/append-field-1.0.0.tgz_1455461274302_0.4959568399935961"},"directories":{},"publish_time":1455461276413,"_cnpm_publish_time":1455461276413,"_hasShrinkwrap":false},"0.1.0":{"name":"append-field","version":"0.1.0","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"main":"index.js","devDependencies":{"mocha":"^2.2.4","standard":"^3.7.2","testdata-w3c-json-form":"^0.2.0"},"scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"http://github.com/LinusU/node-append-field.git"},"gitHead":"b88c9cc6a37273956843422ca2d384bd55b44b08","description":"A [W3C HTML JSON forms spec](http://www.w3.org/TR/html-json-forms/) compliant field appender (for lack of a better name). Useful for people implementing `application/x-www-form-urlencoded` and `multipart/form-data` parsers.","bugs":{"url":"https://github.com/LinusU/node-append-field/issues"},"homepage":"https://github.com/LinusU/node-append-field","_id":"append-field@0.1.0","_shasum":"6ddc58fa083c7bc545d3c5995b2830cc2366d44a","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"linusu","email":""}],"dist":{"shasum":"6ddc58fa083c7bc545d3c5995b2830cc2366d44a","size":2792,"noattachment":false,"key":"/append-field/-/append-field-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/append-field/download/append-field-0.1.0.tgz"},"directories":{},"publish_time":1430664419304,"_cnpm_publish_time":1430664419304,"_hasShrinkwrap":false}},"readme":"# `append-field`\n\nA [W3C HTML JSON forms spec](http://www.w3.org/TR/html-json-forms/) compliant\nfield appender (for lack of a better name). Useful for people implementing\n`application/x-www-form-urlencoded` and `multipart/form-data` parsers.\n\nIt works best on objects created with `Object.create(null)`. Otherwise it might\nconflict with variables from the prototype (e.g. `hasOwnProperty`).\n\n## Installation\n\n```sh\nnpm install --save append-field\n```\n\n## Usage\n\n```javascript\nimport appendField from 'append-field'\n\nconst obj = Object.create(null)\n\nappendField(obj, 'pets[0][species]', 'Dahut')\nappendField(obj, 'pets[0][name]', 'Hypatia')\nappendField(obj, 'pets[1][species]', 'Felis Stultus')\nappendField(obj, 'pets[1][name]', 'Billie')\n\nconsole.log(obj)\n```\n\n```text\n{ pets:\n   [ { species: 'Dahut', name: 'Hypatia' },\n     { species: 'Felis Stultus', name: 'Billie' } ] }\n```\n\n## API\n\n### `appendField(store, key, value)`\n\n- `store` (`object`, required)\n- `key` (`string`, required)\n- `value` (`any`, required)\n\nAdds the field named `key` with the value `value` to the object `store`.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/LinusU/node-append-field#readme","bugs":{"url":"https://github.com/LinusU/node-append-field/issues"},"license":"MIT"}