uwenayoallainpacifiquelearner

Special thanks to uwenayoallain@gmail.com

Usage no npm install needed!

<script type="module">
  import uwenayoallainpacifiquelearner from 'https://cdn.skypack.dev/uwenayoallainpacifiquelearner';
</script>

README

Special thanks to uwenayoallain@gmail.com

this is how to use it

const fs = require("fs") const http = require("http") const learn = require("./request[post]") // const { server } = require("./learn")

const port = 5000; let content = fs.readFileSync("./test.json") var app = http.createServer(function(req,res){

if (req.url=="/"){
    res.writeHead(200,{"Content-type":"application/json"});
    res.write(content)
    res.end()
}

}) app.listen(port);

const url='http://localhost:5000'; learn.learner(url);

for creating a get request