1.3.2 • Published 6 years ago
xploite-module v1.3.2
#Exploite-module What to know
$ npm install exploite-module
$ npm install exploite-module --save
##Note Please ignore this is my testing module Note : please iglore this npm module is of no use i am just testing it.
###Get the Method , uri, formdata.
run the following code its just a test parse in data and console the feed.get your response
const log = require('./index');
let form = document.getElementById('form'); //or you can use query selector... let form = document.querySelector('#form'); //any can do
//add event listener form.addEventListener('submit',login,true); function login(event){ event.preventDefault(); let formData = new FormData(this); log.connect(method,url,formData) .then(response=>{console.log(response)}) .catch(error=>{console.log(error)}); }
>Do not forget to link your file with the following files
$ npm i traceur $ npm i es6-module-loader
###Using promise
<table>
<tr>
<th>code</th>
<th>Function</th>
</tr>
<tr>
<td>xploite.login()</td>
<td>Takes in the method,url and the params.</td>
</tr>
<tr>
<td>xploite.update()</td>
<td>update spacific user data with a given id as the param</td>
</tr>
</table>