0.2.3 • Published 2 years ago

kodok v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Kodok 🐸 - Micro Size HTTP Request

Kodok is promise HTTP request for Javascript. Basically the workflow uses fetch, but the way it works is simplified.

Install

  npm i kodok --save

Example

import kodok from 'kodok';

//GET
kodok.get(`${url}`).then((res) => {
		// response
		console.log(res);
	}).catch((err) => {
		if (err) {
			console.log(er);
		}
	});

Response

TitleDescription
dataResult from API
statusHTTP response status code
date_timeDate time when fetch started
user_agentDetail browser

Kodok Methods

Methods
kodok.get(url)
kodok.post(url, payload, header)
kodok.put(url, payload, header)
kodok.delete(url, payload, header)

Authors

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago