@vmgresorts/ajaxfn

1.0.2 • Public • Published

AjaxFn

it does a thing

WARNING This package was specifically built for use in internal projects at VMG Resorts; this will more than likely not work in your use case. You've been warned. :)

tl;dr use

import AjaxFn from '@vmgresorts/AjaxFn';

AjaxFn({
  url: "/your/api/endpoint",
  data: {
    // ...
  },
  success: res => console.log(res),
  failure: err => console.log(err),
  finally: () => console.log("done")
});

Peer Dependencies

Readme

Keywords

Package Sidebar

Install

npm i @vmgresorts/ajaxfn

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

15.5 kB

Total Files

6

Last publish

Collaborators

  • brown1786