diff --git a/README.md b/README.md index 4a9e610..e3543e2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# w3c-xmlhttprequest [![Build Status](https://travis-ci.org/ykzts/node-xmlhttprequest.svg?branch=master)](https://travis-ci.org/ykzts/node-xmlhttprequest) +# w3c-xmlhttprequest-plus [![Build Status](https://travis-ci.org/mrstux/node-xmlhttprequest.svg?branch=master)](https://travis-ci.org/mrstux/node-xmlhttprequest) + +`w3c-xmlhttprequest-plus` is a fork of [w3c-xmlhttprequest](https://github.com/ykzts/node-xmlhttprequest/) which adds the following features: +- [Adds support for ArrayBuffer, Uint8Array and Buffer to send(body)](https://github.com/ykzts/node-xmlhttprequest/pull/45) +- [Add Content Length](https://github.com/ykzts/node-xmlhttprequest/pull/46) + +--- Server-side XMLHttpRequest like [W3C spec](https://www.w3.org/TR/2014/WD-XMLHttpRequest-20140130/) for [Node](https://nodejs.org/). @@ -7,7 +13,7 @@ This library is still in development. We are recruiting contributors and your pu ## Install ```shell -$ npm install w3c-xmlhttprequest +$ npm install w3c-xmlhttprequest-plus ``` ## Example @@ -15,7 +21,7 @@ $ npm install w3c-xmlhttprequest ### Simple GET request ```javascript -var XMLHttpRequest = require('w3c-xmlhttprequest').XMLHttpRequest; +var XMLHttpRequest = require('w3c-xmlhttprequest-plus').XMLHttpRequest; var client = new XMLHttpRequest(); client.open('GET', 'http://example.com/'); @@ -28,7 +34,7 @@ client.send(); ### Parse JSON response ```javascript -var XMLHttpRequest = require('w3c-xmlhttprequest').XMLHttpRequest; +var XMLHttpRequest = require('w3c-xmlhttprequest-plus').XMLHttpRequest; var client = new XMLHttpRequest(); client.open('GET', 'http://exmaple.com/data.json'); diff --git a/package.json b/package.json index c338393..af717cb 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "author": "Yamagishi Kazutoshi", - "name": "w3c-xmlhttprequest", - "description": "Server-side XMLHttpRequest.", - "version": "2.1.2", + "author": "Stuart Espey", + "name": "w3c-xmlhttprequest-plus", + "description": "Server-side XMLHttpRequest. Plus.", + "version": "2.2.0", "license": "MIT", - "homepage": "https://github.com/ykzts/node-xmlhttprequest", + "homepage": "https://github.com/mrstux/node-xmlhttprequest", "repository": { "type": "git", - "url": "git://github.com/ykzts/node-xmlhttprequest.git" + "url": "git://github.com/mrstux/node-xmlhttprequest.git" }, "main": "./lib/index.js", "scripts": {