#! /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();
  });
};
#! /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());
};
Use arrow function for returns the response.
Use arrow function for returns the response.
