/node-confluence

Primary LanguageTypeScriptApache License 2.0Apache-2.0

node-confluence NPM version Build Status Dependency Status Coverage Status

How to test

$ npm test # for module users 
$ npm run babeltest # for developers

How to use

const host = 'https://xxx.atlassian.net';
const context = process.env.CONFLUENCE_CONTEXT || '';
const confluency = new Confluency({ host, context });
confluency.getPage(1081354).then(data => {
  console.log(data);
});

Support features

  • getPage(pageId, expand)
  • getChildren(pageId, {all, expand=[]} = {})
  • getPages(spaceKey, opts={limit: 25})
  • getSpaces(opts={limit:25})
  • getSpace(spaceKey)
  • create({space, title, content, parent})
  • update({space, id, title, content, parent, version})
  • del(pageId)
  • tagLabel(pageId, label)
  • tagLabels(pageId, labels)
  • getLabels(pageId)
  • untagLabel(pageId, label)
  • search(cql, {limit}={})
  • changeParent(pageId, parentId)
  • convertWikiMarkup(content)