1.0.1 • Published 10 months ago

@sepehrazizi/hydrogen v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Hydrogen HTTP Client

An easy to use http client.

Why use this?

It's basically my first npm package and i wanted to learn how to publish packages. Feel free to contribute if you feel this project worths it.

Logo

Screenshots

App Screenshot

Installation

Install Hydrogen with npm

  npm install @sepehrazizi/hydrogen

Import it into your project

    import { Hydrogen, RequestType } from '@sepehrazizi/hydrogen';

Use it.

    let HRequest = Hydrogen.axiosEngine()
      .Type(RequestType.GET)
      .BaseUrl("https://hub.dummyapis.com/")
      .Destination(["delay", "?seconds=:delay"])
      .DestinationParamMap({"delay": 5})
      .Build();
      HRequest.execute().subscribe(
        {
          next: res => {
            console.log(res);           
          },
          error: e => {
            console.error(e);            
          }
        }
      );

Donations

USDT (TRC20)

TRoSbkdspucUR9PTK2Wdieq9ZMvkohb7fm

TRX

TRoSbkdspucUR9PTK2Wdieq9ZMvkohb7fm

Bitcoin

bc1q0hzfgfhw6cpam90kj0s45h0jj222w7mrsexem7

Ethereum ETH Network

0xa7Ecf7D686C3B9521a4cC272effDf30B45779bf8

Feedback

If you have any feedback, please reach out to us at a2XGAdThUm2PCmPXBZ4TZsVVxDc5M@proton.me

1.0.1

10 months ago

1.0.0

10 months ago