/client-crud

HTTP/1.x - HTTP/2 CRUD

Primary LanguageTypeScriptMIT LicenseMIT

HTTP/2 CRUD client

HTTPS requests.

npm i client-crud

API

Methods:

  • get
  • post
  • put
  • patch
  • delete

Method parameters:

  • Request options similar to https.request.
  • JSON to be sent (optional).

Example

import { get } from 'client-crud';

const options = {
  hostname: 'yzr7679ckh.execute-api.eu-west-1.amazonaws.com',
  path: '/test',
};

const data = await get(options);

dev

npm run

Deploy

npm run build
npm run deploy