Skip to content

0k/browser-request

Repository files navigation

Browser httpRequest implementation

This packages holds implementation of HttpRequest (from 0k.io/types-request), a simple http request facility using the standard fetch() interface.

This should work in any browser and WebView when run in android or iOS.

Adding @0k/browser-request to your project

From the root of your project:

npm install --save @0k/browser-request

Or better, as browser-request is still in early release,

npm install --save 0k/browser-request#master

To be sure to get the latest version, relaunch this last command whenever you want to update.

Developer

Building the project from fresh clone

npm install

Transpilation to JavaScript

npx tsc

or with watch support:

npx tsc -w