{"_id":"@ajaxios/ajaxios","_rev":"1-a68e5014f294202bcf6910a00508951a","name":"@ajaxios/ajaxios","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ajaxios/ajaxios","version":"1.0.0","description":"sending ajax with form","main":"index.js","scripts":{"test":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/jamalroger/Ajaxios.git"},"keywords":["ajax","form","axios","data"],"author":{"name":"BELHERRADI JAMAL"},"license":"ISC","bugs":{"url":"https://github.com/jamalroger/Ajaxios/issues"},"homepage":"https://github.com/jamalroger/Ajaxios#readme","gitHead":"47e1b54432a90266f78830cf7ffd58757418d353","_id":"@ajaxios/ajaxios@1.0.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-K8GdRsp91OJH5wy6qhP8/yF4rSYwVJEfI0Mff3IDwlWl3gRexNKq9dhwQc55aubjv1MgG21YAIBtyhJ0C5711Q==","shasum":"cc0d9e1bc1a52b2ea2d8d32e55dc617eb235408d","tarball":"https://registry.npmjs.org/@ajaxios/ajaxios/-/ajaxios-1.0.0.tgz","fileCount":9,"unpackedSize":25863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF4eBCRA9TVsSAnZWagAAKlgP/2j1nlfN9Y1jNg0GWqlE\nChkXzoHSe3OFNo5xA1NT+2uNmnPHx4kj8ebwJQUxY5U877eaFqF28FVHkdX0\nMD2Ws9VMoW5LdnE2wJlKzVzWwr5GilNzz9EGtJwr5uUVaZwjJe4cGIC2NjY7\nb2anxaJiqHl7X+lKO9nj3VTEADXBSqk0and4ruTlsbHTcnqiEOvXBEiknWbA\nNHVUnklhPIOg/J2dvdKWIdm0zafFmL8Y2n88qDNV1wHpBh2u5JiuVCHC3ePU\nVGDQZoEVPc5BFDo8pz/wJ+traFHbJKvqYdP6wUvu+UC3l6Q+qMgd+W3lveoh\n7Ktit33/B+wX0LfX1P3cmDuAX8w+Filfl9IdZP8LMziCql2xjjbPOfjN3cPy\nU7rsJN/C45ISL9bc5BWNVZUcWgjJsbR2UFnNeHOBTowV3VMvMtvC4EQB1Da0\n8DsjJHo339+kh359UStSaAy/a1v+Y7FYysJSX8qT7p+cEFWdqZwRH8X8svxf\nPB9TmmiNFGgv7rBYOZfK8kcEPuOVQdeiKwBh6597KJByW7t3HyF8WnoYxPbr\nOX6GywsYpbIkDf9OHLm21PTfVBXZ5KgdaPRqENoaEHo0eUUvjbV1NmHzEp4L\nEnxJtP9aCGN4ZJUZ3NCkFItoJ1EzQSP9AKO2tU7lUsbxNiC4ximAYERmTraz\nHC27\r\n=tIzl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH43ZE0MlxzC+OUss/K44aIvZd+6iTTvDXB74GdsMKJaAiAKjBJ2SriqnYKi8Zr8KM6r9H+dHz22tc5hdvxRYrnp0w=="}]},"maintainers":[{"name":"ajaxios","email":"belharradi.j@gmail.com"}],"_npmUser":{"name":"ajaxios","email":"belharradi.j@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajaxios_1.0.0_1578600318082_0.11986243281951037"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-09T20:05:18.047Z","1.0.0":"2020-01-09T20:05:18.204Z","modified":"2022-04-04T12:26:19.445Z"},"maintainers":[{"name":"ajaxios","email":"belharradi.j@gmail.com"}],"description":"sending ajax with form","homepage":"https://github.com/jamalroger/Ajaxios#readme","keywords":["ajax","form","axios","data"],"repository":{"type":"git","url":"git+https://github.com/jamalroger/Ajaxios.git"},"author":{"name":"BELHERRADI JAMAL"},"bugs":{"url":"https://github.com/jamalroger/Ajaxios/issues"},"license":"ISC","readme":"<!--h-->\n# Ajaxios\nno more coding to sending \na simple library Based on your HttpClient request to sending  request ajax using from it's very simple that's can be used \nwith Jquey,Angular,Vuejs,Rectjs \n\n\n### -> Requirements\n      Ajxios have no requirements that by default it's require just http api \n      you can use any of this api \n      HttpClient for Angular \n      Jquery.ajax for Jquery\n      Axios,or fecth for Reactjs,Vuejs\n     \n### -> Installation\n     the installaion is simple\n     \n     npm install @belharradi.j/ajaxios\n     \n     ------------ or ----------\n\n     include in head tag the script \n     \n     <script src=\"https://unpkg.com/@belharradi.j/ajaxios\"></script>\n     \n### -> Documentation\n\nthe usage it's simple just follow the steps\n\n\n#### -> Create a form html\n\n        <form action=\"host/pah\" method=\"GET\" id=\"form\">\n        \n                  <label> input filied </label>\n                  \n                  <input type=\"text\" name=\"input\" value=\" text ...\"/>\n                  \n                  <input type=\"button\"  id=\"send\" value=\"send\">\n        </form>\n #### -> Create A instance of Ajaxios \n          for create a instance of ajaxios\n            var ajax= new Ajaxios(options,requirements ={});\n            options it's a object like :\n            {\n            eleform:document.getElementById('form'),// element of form\n            http:axios,// http api used for sending request like httpclient,$.ajax,axios\n            type:\"Axios\"// type of Object http it can be [\"Axios\",\"Jquery.ajax\",\"HttpClient\",\"fetch\"] \n            headers:{Authorization:\"toke\",\n                    ............\n            },// object of headers \n            }\n            for Requirements look at validation step\n#### -> Appending data \n        \n          you can append data to Ajaxios before you sending\n         \n         var ajaxios.append(\n         {\n           keys_parameter:value,\n           ..................\n           ..................\n         }\n         );\n#### -> Validation \n         \n         the amazing thing it's you testing data in real Time editing by user before sending \n         request will be send if all function of the keys_parameter return true\n         requerments = {\n           keys_parameter:(values_of_key)=>{\n              \n              if (values_of_keys.length>0)\n\n                    return 1\n               else \n                    return 0;\n           },\n           ..................\n           .................\n          }\n          \n#### -> Sending request \n          \n          before you sending the request you can execute a function passing as arguments for method send\n          \n          the function send return A promise Http Object like Httpclient, $.ajax, fetch or axios\n          \n          document.getElementById('send').click=()=>{\n          \n          ajaxios.send().then(function(res){\n\n               document.getElementById('send').innerHTML=\"send\"\n\n          });\n          }\n          or \n            document.getElementById('send').click=()=>{\n          \n          ajaxios.send(()=>{\n                 \n                 ...............\n          \n          }).then(function(res){\n\n               document.getElementById('send').innerHTML=\"send\"\n\n          });\n          }\n          \n\n          if you want to use http api just call ajax.http\n\n\n\n\n\n\n","readmeFilename":"README.md"}