Skip to content

mrbrunelli/dog-time-decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dog Timer Decorator

A example of Time Decorator with Node.js + Typescript + Dog Ceo API

Reusable decorator

@Timer()
  async fetch() {
    const { data } = await axios.get(this.url);
    return data;
  }

Response

{
  message: 'https://images.dog.ceo/breeds/terrier-border/n02093754_6257.jpg',
  status: 'success',
  duration: '532.32ms'
}

Releases

No releases published

Packages

No packages published