clarify polyfill usage

This commit is contained in:
Sebastian McKenzie
2014-11-23 15:17:49 +11:00
parent c7965df42d
commit 4097da09bd
2 changed files with 16 additions and 15 deletions

View File

@@ -5,13 +5,18 @@
[es6-shim](https://github.com/paulmillr/es6-shim) and
[es6-symbol](https://github.com/medikoo/es6-symbol) polyfills.
## Node
This will emulate a full ES6 environment. This polyfill is automatically loaded
when using [6to5-node](usage.md#node).
## Usage
### Node
```javascript
require("6to5/polyfill");
```
## Browser
### Browser
Available from the `browser-polyfill.js` file within the 6to5 directory of an
npm release.