{"_id":"@artginzburg/form-to-json","_rev":"5-1f822c4d2c3b30e3e083c993fcbb0ca1","name":"@artginzburg/form-to-json","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@artginzburg/form-to-json","version":"0.1.0","description":"Simple Express server that converts HTML forms to JSON and sends them to another endpoint","main":"index.js","keywords":["form","json","converter"],"author":{"name":"Art Ginzburg","email":"art.ginzburg@ya.ru","url":"https://artginzburg.github.io"},"repository":{"type":"git","url":"git+https://github.com/artginzburg/form-to-json.git"},"license":"MIT","scripts":{"test":"node test","start":"node index"},"dependencies":{"axios":"^0.23.0","express":"^4.17.1"},"gitHead":"3090c39cf857c9fd313f7520640410412650f911","bugs":{"url":"https://github.com/artginzburg/form-to-json/issues"},"homepage":"https://github.com/artginzburg/form-to-json#readme","_id":"@artginzburg/form-to-json@0.1.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-tjotkA2zXEJewZIA6iK/2cqVwjbZz7jQXSUSr8gVa2T5QHwcw5eVm+WMC09OuCU+jLwdddVK3lVo2fAzwb84CQ==","shasum":"d86ad335f968fa385983b2fc332b09d1d5aa1870","tarball":"https://registry.npmjs.org/@artginzburg/form-to-json/-/form-to-json-0.1.0.tgz","fileCount":6,"unpackedSize":1657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYX2RMSLmj0kQm+7cnaG/hsdCIfXrgDcXw9XuYC+emIAIgCXoMg4UFo8cw2Y4FTf0KzQf/gEQi08JxXb0KAPP44VI="}]},"_npmUser":{"name":"artginzburg","email":"ginzburg.arthur@gmail.com"},"directories":{},"maintainers":[{"name":"artginzburg","email":"ginzburg.arthur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-to-json_0.1.0_1634755201532_0.7149936483927151"},"_hasShrinkwrap":false},"0.2.0":{"name":"@artginzburg/form-to-json","version":"0.2.0","description":"Simple Express server that converts HTML forms to JSON and sends them to another endpoint","main":"index.js","keywords":["form","json","converter"],"author":{"name":"Art Ginzburg","email":"art.ginzburg@ya.ru","url":"https://artginzburg.github.io"},"repository":{"type":"git","url":"git+https://github.com/artginzburg/form-to-json.git"},"license":"MIT","scripts":{"test":"node test","start":"node index"},"dependencies":{"axios":"^0.23.0","express":"^4.17.1"},"gitHead":"222bc1f8c0a4ceac46779f1e1bc17fbb430186ff","bugs":{"url":"https://github.com/artginzburg/form-to-json/issues"},"homepage":"https://github.com/artginzburg/form-to-json#readme","_id":"@artginzburg/form-to-json@0.2.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-hxRCha1RTc/r9IbMIl71EVLkiaWuvy4elL5e3fe7Md5/iKbf2tB/mQs7o3Zq5pW7FNStd2LHVrNqROkS371tjw==","shasum":"d9879cd01cb65bc2a196d36ffa877592c13ec241","tarball":"https://registry.npmjs.org/@artginzburg/form-to-json/-/form-to-json-0.2.0.tgz","fileCount":5,"unpackedSize":2749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzF8FCRA9TVsSAnZWagAAAY0P/0yJlvADCukgQXprN+0u\np6cpa3N23qCOnjbXIVaxFRCpWfjwOmX+6+dvHQnKLhPb00wwmLB+bARGCEJg\n7b040cyULntjaQNGQT3gRIEqeKOfoTlIhV62rVDaLZjn2fBEm4aAj0aroqhb\nsWwruNRIBXe2Qkhz/3vKaswntjFhxhqQT4fV14TJJHfif2IHzo9PQDcA4JMY\n7/kjOtoPK5k1pesxHJJWmF0sqIkBUhOLtL20mI1gbQPb0t+5vlQU16QdLiPJ\nAsc99ATdc8oWpNj5MRMTRPlH6KYGQimCHRSkvk9EGtjMDiahP1IQYvRx4yYl\nG3SrNdYvnpRJXw30XKkYnBUeA1FyPuHBVXKi5Wb9hkzpenlj64IcbgS6At9K\nj4AMGpA7GM3+AGNJMgAAbtO8lSbK2gkQLy8NCg0JJv5yPP7NyJfrTgMsVcxM\n4NbpGBGHQtE/BnBYs0272Yc2U1buetsU5ICNooK51Qhgy9SklD34RU5ApjGw\n6/Rk2EMBRzAt97YjaqwEaWjzZ3H8CLHY6d+cPl+J+hdW+9kDFNoQHRFIQGFA\nOdWoEMLvsfy4rtgp+p3XM+0/KjkMsK+yRQKsirwGxqMLP4tduopcwgld0n37\n/jSIblRFirrcYRvTWdeXwF6coTGkfJuCpKeQLywqDJC3EMsUd+bqeQEXjJkw\nECHU\r\n=kR+2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwyqUPdMUv7YmGKUFpS+EXwS0Ml5CPcVnDseHaeYD0kAiEAj9vX6qprIVNrkSv7YMfL3EKQ3IEuUjfI0L/PaWh29FU="}]},"_npmUser":{"name":"artginzburg","email":"ginzburg.arthur@gmail.com"},"directories":{},"maintainers":[{"name":"artginzburg","email":"ginzburg.arthur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-to-json_0.2.0_1634766066073_0.7035473399203247"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-20T18:40:01.497Z","0.1.0":"2021-10-20T18:40:01.869Z","modified":"2022-04-04T15:37:17.847Z","0.1.1":"2021-10-20T19:01:19.195Z","0.2.0":"2021-10-20T21:41:06.201Z"},"maintainers":[{"name":"artginzburg","email":"ginzburg.arthur@gmail.com"}],"description":"Simple Express server that converts HTML forms to JSON and sends them to another endpoint","homepage":"https://github.com/artginzburg/form-to-json#readme","keywords":["form","json","converter"],"repository":{"type":"git","url":"git+https://github.com/artginzburg/form-to-json.git"},"author":{"name":"Art Ginzburg","email":"art.ginzburg@ya.ru","url":"https://artginzburg.github.io"},"bugs":{"url":"https://github.com/artginzburg/form-to-json/issues"},"license":"MIT","readme":"# form-to-json\n\nThis REST endpoint gets any HTML form (`application/x-www-form-urlencoded`) sent as a POST request's body, converts it to JSON (`application/json`), and sends the converted data further to any URL.\n\nIn other words,\n\n`Form in Browser ----> This API ----> Another REST API (JSON)`\n\n## Usage\n\n```\nhttps://artginzburg.runkit.io/form-to-json/branches/master/:url\n```\n\n> Change `:url` at the end to the desired \"receiver\" link\n\n## Example\n\nLet's say a CRM (like https://www.1c-bitrix.ru) uses webhooks to send forms to an analytics service (like https://rick.ai)\n\nThe only trouble is that the CRM sends data in HTML Form format, whereas the analytics endpoint expects raw JSON\n\nTo solve this, the CRM could be configured to send data, instead of the initial analytics endpoint — like:\n\n`https://exchange.rick.ai/webhooks/kolskytour/lead`\n\n, to form-to-json API, specifying the initial analytics endpoint as a parameter — like this:\n\n```\nhttps://artginzburg.runkit.io/form-to-json/branches/master/https://exchange.rick.ai/webhooks/kolskytour/lead\n```\n\n<br />\n\nIn other words, just combining form-to-json URL with another endpoint (in that particular order) will send the converted data as expected.\n","readmeFilename":"README.md"}