xhr-readystate.js

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i xhr-readystate.js

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • wilmoore