Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 1.29 KB

Readme.md

File metadata and controls

44 lines (23 loc) · 1.29 KB

xhr-readystate.js Build Status Build Status NPM version

XMLHttpRequest ready state map for Node.js and the browser.

Example

var state = require('xhr-readystate');
if (xhr.readyState == state.DONE) console.log(xhr.responseText);

Installation

component

$ component install wilmoore/xhr-readystate.js

bower

$ bower install xhr-readystate.js

npm

NPM

volo

$ volo add wilmoore/xhr-readystate.js

manual

  1. download

     % curl -#O https://raw.github.com/wilmoore/xhr-readystate.js/master/xhr-readystate.js
    
  2. use

     <script src="xhr-readystate.js"></script>
    

License

MIT