const AnimalApi = require('./lib/index').default AnimalApi.getCat().then(res=>{ console.log(res) })