It's time to ditch Medium for good! ūüĆą‚ö°ÔłŹ

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

HTTP request with ES6 tagged templates

ES6 template literals are one of my favorite features in es6. A few days ago I saw an open source project on github - htm, there are also hyperHTML and, possibly, several other projects also.And I decided to create such a thing to perform AJAX requests.

By the way, package uses node-fetch for node.js and whatwg-fetch for client javascript

Source in github vaheqelyan/karin

Do you think this is a good idea ?


Vahe Araqelyan's photo

Vahe Araqelyan

Write your comment…


Looks good. But I'm gonna stick with Axios. Even fetch doesn't have all the features of axios.

One or the other day if I need a feature from axios, I'll need to use both right? So I'll stick with axios

Reply to this…

Share your programming knowledge and learn from the best developers on Hashnode

Get started

Great. But like above comment. I recommend axios. Cookie, proxy, headers, ...

Reply to this…

I'm not sure I see the benefit. Don't I loose all help from my editors intellisense and code completion if I do it like this? I can already do things like fetch(`${user}`)

Reply to this…

Great idea! I'd love to contribute!

Reply to this…