nextcloud_fetchdeprecated

Thin wrapper around modern browser's fetch API for Nextcloud

Usage no npm install needed!

<script type="module">
  import nextcloudFetch from 'https://cdn.skypack.dev/nextcloud_fetch';
</script>

README

nextcloud_fetch

Thin wrapper around modern browser's fetch API for Nextcloud.

Usage

Install the package via npm

npm install --save nextcloud_fetch

Send (JSON) requests to your Nextcloud server

import { nc_fetch, nc_fetch_json } from 'nextcloud_fetch'

let res = nc_fetch('https://…')
let json_res = nc_fetch_json('https://…')