1.1.2 • Published 10 years ago

aias v1.1.2

Weekly downloads
20
License
MIT
Repository
github
Last release
10 years ago

aias

A standalone AJAX library using JavaScript promises.

Installation

Download the latest aias release and load using a script tag:

<script src="dist/aias.min.js"></script>

or install with npm:

npm install aias

or install with bower:

bower install aias

How to use aias

aias.get()

aias.get(url)
aias.get('/endpoint')
  .then(function (response) {
    console.log(response);
  });

aias.post()

aias.post(url[, data])
aias.post('/endpoint', {"name": "Bill", "age": 64})
  .then(function (response) {
    console.log(response);
  });

aias.put()

aias.put(url[, data])
aias.put('/endpoint', {"name": "Bill", "age": 64})
  .then(function (response) {
    console.log(response);
  });

aias.delete()

aias.delete(url)
aias.delete('/endpoint')
  .then(function (response) {
    console.log(response);
  });

Version History

1.1.2: Adding JSDoc-style comments.

1.1.1: Updating documentation.

1.1.0: Adding request to output.

1.0.3: Fixing bug with missing var statement.

1.0.2: Updating minification output to aias.min.js.

1.0.1: Updating documentation.

1.0.0: Initial release.

License

This is free software distributed under the MIT License.

1.1.2

10 years ago

1.2.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago