0.1.0 • Published 12 years ago

xhr-readystate.js v0.1.0

Weekly downloads
4
License
-
Repository
-
Last release
12 years ago

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