Completed
Branch master (ee7956)
by Sand
01:03
created

examples/list-files - with page and results per page.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 1
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 15
rs 10
bpm 1
cpm 1
noi 1
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A list-files - with page and results per page.js ➔ ??? 0 3 1
1
/**
2
 * Created by vedi on 30/10/2016.
3
 */
4
5
'use strict';
6
7
const Sandcage = require('..');
8
9
const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]');
10
const payload = {
11
  page: 1,
12
  'results_per_page': 10
13
};
14
15
sandcage
16
  .listFiles(payload)
17
  .then((result) => {
18
    console.log(result);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
19
  });