1.1.2 • Published 11 years ago
aias v1.1.2
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 aiasor install with bower:
bower install aiasHow 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.