tree: 10869948f1b10e36a34c29baafd303af3f5b9701 [path history] [tgz]
  1. docs/
  2. test/
  3. .gitignore
  4. index.js
  5. package-lock.json
  6. package.json
  7. README.md
slingpost/README.md

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.