Example using Node request
package with browserify
and CORS
Install http-server
and browserify
globally:
npm install http-server browserify -g
Usage:
npm install
browserify main.js > bundle.js
http-server
Then open the localhost
URL in a browser and look at the JS console