Node supportīrowser environments are supported from version 3 onwards of this library.Īs mentioned above, v5 introduced ESM and this may require additional configuration when bundling for the browser.Īlthough you may choose to transpile this library's default entry point (NodeJS) yourself, it is not advised - use the dedicated web version instead. Versions before v5 used Axios for requests. In Node and other environments it uses node-fetch. It uses the browser's native fetch if present, or a polyfill if not. This library uses to make requests in a cross-platform manner. If you're not ready to upgrade, you may consider using version 4 of this library. Web project bundled with a tool like Webpack that can handle ESM.NodeJS project with "type": "module" in package.json (ESM mode).Version 5 upgrades the library to use ESM (ECMAScript Modules), and so your environment must fit one of the following formats to be able to use this library: Earlier versions are deprecated and will not receive updates. Version 4 is in support mode, and will receive security and stability related bugfixes. This library's motivation is not to follow an RFC or to strictly adhere to standard WebDAV interfaces, but to provide an easy-to-consume client API for working with most WebDAV services from Node or the browser. It parses and prepares directory-contents requests for easy consumption, as well as providing methods for fetching things like file stats and quotas. The API returns promises and resolve with the results. This library provides a WebDAV client interface that makes interacting with WebDAV enabled services easy. Being that it is so widespread, many file hosting services such as Nextcloud/ ownCloud, Box and Yandex use it as a fallback to their primary interfaces. WebDAV is a well-known, stable and highly flexible protocol for interacting with remote filesystems via an API. A WebDAV client, written in Typescript, for NodeJS and the browser
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |