npm install event-source__Based on EventSource polyfill maintained by Yaffle. See it's repository for more information.__
In your project path:
$ npm install event-source
#### Browser
You can easily bundle _EventSource_ for browser with modules-webmake
``javascript`
require('event-source/global');
If native version is already available, above will do nothing (polyfill won't be loaded).
`javascript``
var EventSource = require('event-source');
If native version is available it'll be returned instead of polyfill.
$ npm test