#! /usr/bin/env node
'use strict';

const fetch = require('node-fetch');

module.exports = function (url) {
  return fetch(`http://registro.br/cgi-bin/avail/?qr=${url}`).then(response => response.json());
};
#! /usr/bin/env node
'use strict';

const fetch = require('node-fetch');

module.exports = function (url) {
  return fetch(`http://registro.br/cgi-bin/avail/?qr=${url}`)
  .then(function(response) {
    return response.json();
  });
};
--- 
+++ 
@@ -4,8 +4,5 @@
 const fetch = require('node-fetch');
 
 module.exports = function (url) {
-  return fetch(`http://registro.br/cgi-bin/avail/?qr=${url}`)
-  .then(function(response) {
-    return response.json();
-  });
+  return fetch(`http://registro.br/cgi-bin/avail/?qr=${url}`).then(response => response.json());
 };
Use arrow function for returns the response.
