0.0.24 • Published 4 years ago
clientoid v0.0.24
Getting Started
Usage in Browser with Netlify's CDN
<script src="https://clientoidjs.netlify.app/dist/clientoid.web.min.js"></script>
Then just start making requests like this
const Client = new Clientoid();
Client.get("https://httpbin.org/get", "json")
.then((res) => {
console.log(res);
})
.catch((err) => console.error(err));
Usage in Node.js using NPM
Install Clientoid.js like this
npm i clientoid
In your JS file
const Clientoid = require("clientoid");
const Client = new Clientoid();
Client.get("https://httpbin.org/get", "json")
.then((res) => {
console.log(res);
})
.catch((err) => console.error(err));