Completed
Push — master ( 7dd2d9...fd97ea )
by Thomas
49s queued 27s
created

module.exports   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 3
rs 10
nop 1
1
/*
2
 * Copyright (c) 2018 Includable.
3
 * Created by Thomas Schoffelen.
4
 */
5
6
const API = require('../../util/API')
7
const output = require('../../output')
8
9
module.exports = function () {
10
  API.checkSignedIn()
11
12
  API.get('/communities').then(function (response) {
13
    response.data.data.map(function (community) {
14
      output.log(community.title + ' - ' + community.domain)
15
    })
16
  })
17
}
18