Code Monkey home page Code Monkey logo

kinka's Introduction

kinka

⚡️ HTTP web client for browsers ⚡️

kinka it is most lighter 💨 and very powerful JavaScript library designed for http requests!
It will reduce your http code (which are using XMLHttpRequests) and allows do http code more simpler and easy to read.

🚀 Installation

$ npm i -S kinka
# or using yarn
$ yarn add kinka

📚 Documentation & Examples

Documentation
Examples
Sandbox

Why kinka ❔

It is the easiest way to catch your bad request
catching error example
Many powerful features 💪(e.g. auto abortable requests) which can improve your interaction with your requests
abortable key example
Have very small size which can improve site load time
query params example

👍 Contributing

If you want to help with the project, please refer to guide for contribution. It should contain most of the things you'll need to get your contribution started!
Working on your first Pull Request? Learn how to do it

📝 License

Licensed under the MIT License.

kinka's People

Contributors

js2me avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

erichuang2015

kinka's Issues

Create own api for manual testing

Currently project is using https://reqres.in/api to do manual tests.
And I think that it is not correct to use another api for manual testing.

Add unit tests for 'credentials' property

Currently we don't have unit tests for this property.

Required:

  • Create unit tests for request credentials property (changing withCredentials) in XHR
  • Same thing as above but for instance credentials property

Consider alternate interfaces

Having full error would be nice.

const { err, data } = await kinka.get('/donuts')
if (err) {
  console.log('Error:' + err)
}

This would be consistent with node-style callbacks

fs.readFile(file, (err, data) => {
  if (err) {
    console.log('Error:' + err)
  }
})

and promises:

promisify(fs.readFile)(file)
  .then(data => {})
  .catch(err => {})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.