DEV Community

Eduardo
Eduardo

Posted on

json-front, light-weight front-end library for HTTP requests

I've created a small library that can be used in front-end apps, it allows HTTP requests to server, when data that is being sent, you only pass it as JS object, lib does the converting to JSON for you. When receiving, data is converted to JS object so it is available immediately on response end.

json-front also allows creation of API URL instances that can be reused across whole project.

Methods implemented:
GET
POST
PUT
DELETE

Try it out, if you want, and let me know any suggestions that you may have.

https://www.npmjs.com/package/json-front

Top comments (0)