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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i xhr-readystate.js

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • wilmoore