License

Apache Sling Post Client

This module is part of the Apache Sling project.

Node JS Client for the Sling POST Servlet.

Importing

Install with:

npm install @apachesling/slingpost

and then import into your script:

const SlingPost = require("@apachesling/slingpost");

Use

Construct a new instance with:

const SlingPost = require("@apachesling/slingpost");

const sp = new SlingPost();

The constructor takes an optional configuration object with the following options:

  • url {string} the url of the Apache Sling instance to connect to
  • username {string} the username to authenticate with Apache Sling
  • password {string} the password to authenticate with Apache Sling
  • base {string} the base directory to use when creating file paths

See the JSDocs for full usage information.