1.1.2 • Published 4 years ago

kst-util v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

kst-util

npm version build status code coverage install size npm downloads gitter chat

Promise based HTTP client for the browser and node.js

Features

  • Make XMLHttpRequests from the browser
  • Make http requests from node.js
  • Supports the Promise API
  • Intercept request and response
  • Transform request and response data
  • Cancel requests
  • Automatic transforms for JSON data
  • Client side support for protecting against XSRF

Browser Support

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Installing

Using npm

npm install kst-util

Using yarn

yarn add kst-util

Using bower

bower install kst-util

Using cdn

<script src="https://unpkg.com/kst-util/dist/umd/kst.min.js"></script>

Quick Start

Using global variable K

    //example
    K.$ajax.get('url').then(res=>{

    })
    // ...

Or using in Vue

import Vue from 'vue'
import K from 'kst-util'

Vue.use(K)

//using example : this.$K

Example

methods

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago