https://github.com/0k/browser-request
Browser request implementation
https://github.com/0k/browser-request
Last synced: 11 months ago
JSON representation
Browser request implementation
- Host: GitHub
- URL: https://github.com/0k/browser-request
- Owner: 0k
- License: bsd-2-clause
- Created: 2022-05-02T08:18:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T12:45:10.000Z (about 3 years ago)
- Last Synced: 2025-01-21T10:51:17.669Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
# -*- ispell-local-dictionary: "english" -*-
#+TITLE: 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:
#+begin_src sh
npm install --save @0k/browser-request
#+end_src
Or better, as =browser-request= is still in early release,
#+begin_src sh
npm install --save 0k/browser-request#master
#+end_src
To be sure to get the latest version, relaunch this last command
whenever you want to update.
* Developer
** Building the project from fresh clone
#+begin_src sh
npm install
#+end_src
** Transpilation to JavaScript
#+begin_src sh
npx tsc
#+end_src
or with watch support:
#+begin_src sh
npx tsc -w
#+end_src