examples/albums.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 11
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A albums.js ➔ ??? 0 1 1
1
/* to run: babel-node albums.js */
2
3
global.fetch = require('node-fetch');
4
5
import SpotifyWrapper from '../src/index';
6
7
const spotify = new SpotifyWrapper({
8
  token: 'BQD6DeDxMyHeNTD5it-1_PNz9rWswGQjFDcxeNIsNknmkR882Z7CgE0GTB6oi1nSFU5RI4ZNxYVpJuJ_vVnJWGKKDvtxVsYUPUALk_8-Aoc5gcemWMOiqCdRHkkzXXhMJ-hTHDtzhcflrKM'
9
});
10
11
const albums = spotify.search.albums('Incubus');
12
13
albums.then(data => data.albums.items.map(item => console.log(item.name)));
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...
14