teahttp 0.2.1

a http client for wasm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*!teahttp :3*/

export function isNode() {
	return typeof process === "object" && typeof require === "function";
}

export function isWeb() {
	return typeof window === "object";
}

export function isWorker() {
	return typeof importScripts === "function";
}

export function isShell() {
	return !isWeb() && !isNode() && !isWorker();
}