// Load module
const itunes = require ('searchitunes');

// Search parameters
const params = {
  entity: 'software',
  country: 'NL',
  term: 'github',
  limit: 1,
  price: 0
};

// Fancy console.log
function output (result) {
  console.dir (err || data, {
    depth: null,
    colors: true
  });
}

// Do the search
itunes (params)
  .then (output)
  .catch (console.error);

@@ -179,54 +179,54 @@
 %0A// 
-Fancy console.log%0Afunction output (result) %7B%0A 
+Do the search%0Aitunes (params)%0A  .then (data =%3E
  con
@@ -239,15 +239,8 @@
 ir (
-err %7C%7C 
 data
@@ -285,61 +285,8 @@
   %7D)
-;%0A%7D%0A%0A// Do the search%0Aitunes (params)%0A  .then (output
 )%0A  

Fix and shorten callback