fetch & axios snippets
This extension contains a collection of useful code snippets for fetching data using fetch and axios libraries in JavaScript.
Usage
- Type the "!" of the snippet you want to use in your code.
- Press
Tab to expand the snippet.
- The snippet will be automatically indented to match the current code.
Snippets
The following snippets are currently included in this extension:
Fetch
!fetch get : Fetches data from a specified URL using the fetch API and the GET method.
!fetch post : Fetches data from a specified URL using the fetch API and the POST method.
!fetch put : Fetches data from a specified URL using the fetch API and the PUT method.
!fetch delete : Fetches data from a specified URL using the fetch API and the DELETE method.
!fetch iifi : Fetches data from a specified URL using the fetch API with the iifi method.
!fetch async await : Fetches data from a specified URL using the fetch API with the async await method.
Axios
!axios get : Fetches data from a specified URL using the axios library and the GET method.
!axios post : Fetches data from a specified URL using the axios library and the POST method.
!axios put : Fetches data from a specified URL using the axios library and the PUT method.
!axios delete : Fetches data from a specified URL using the axios library and the DELETE method.
!axios iifi : Fetches data from a specified URL using the axios library with the iifi method.
!axios async await : Fetches data from a specified URL using the axios library with the async await method.
Features
fetch
axios
Tip: Only put '!' and see all the fetch and axios snippets
Extension 👈
Enjoy! 🎉
| |