Skip to content

attrs/tinyajax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyajax

Install

$ npm install tinyajax --save
$ bower install tinyajax

Usage

var ajax = require('tinyajax');

ajax(src, function(err, text) {
  ...
});

// sync
ajax(src, function(err, text) {
  ...
}, true);


// option
ajax(src, function(err, text) {
  ...
}, {
  sync: false,
  mimetype: 'application/json',
  headers: {
  	'X-Some-Header': 'value'
  },
  payload: {
    key: 'value'
  }
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published