3.5.1 • Published 5 years ago

dwdav v3.5.1

Weekly downloads
9,665
License
ISC
Repository
github
Last release
5 years ago

dwdav

Provide some basic methods for working with DW webdav server using request

This is an under-the-hood library that is used by dwupload and dwlogs. Those are probably more likely what you're looking for.

Installation

:; npm install dwdav

Usage

var dwdav = require('dwdav')(config);

dwdav.get().then(function (res) {
	console.log(res);
});

config

Below are the default values for the config object.

  • hostname: localhost
  • username: admin
  • password: password
  • folder: Cartridges
  • version: version1
  • root: .

root option allows for path resolution of the file to upload relative to a directory. p12 allows for 2-factor authentication. self-signed allows for self-signed cert to be used.

API

All methods are promise-based, i.e. they return a promise.

  • propfind(filePath, root)
  • get(filePath, root)
  • post(filePath, root)
  • unzip(filePath, root)
  • postAndUnzip(filePath, root)
  • delete(filePath, root)
  • mkcol(filePath, root)

filePath is the path to a local file to be used.

3.5.1

5 years ago

3.5.0

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.0

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.4.2

7 years ago

2.4.1

7 years ago

2.4.0

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago