browserify / http-browserify

node's http module, but for the browser
MIT License
244 stars 110 forks source link

Remove Base64 dep #33

Closed feross closed 10 years ago

feross commented 10 years ago

Base64 provides an implementation of window.btoa and window.atob, but all modern browsers already support this, so let's just use it directly.

Base64 was only adding support for IE9 and lower, and http-browserify already won’t work in those browsers since it includes stream which includes Buffer which requires Uint8Array (not supported in IE9 and lower).

This also saves 3KB on bundle size.

feross commented 10 years ago

Closing this since we decided that Buffer should support old IEs.