text: const needle = require('needle')
  
  const igStalk = (user) => {
      return new Promise((resolve, reject) => {
          if (typeof user === 'undefined') { reject('insira nome de usuário') }
          var url = `https://alfians-api.herokuapp.com/api/stalk?username=${user}`
          needle(url, async (err, resp, body) => {
              try {
                  if (body.status === false) { reject(`maaf username *${user}* tidak ditemukan.`) }
                      resolve(body)
              } catch (err) {
                  reject('sepertinya error.')
              }
          })
      })
  }
  
  module.exports = igStalk
  