Add Node usage (#398) [skip ci]

I can never remember the syntax and end up coming here to copy/paste this snippet all the time.

I assume other people want to as well, or at least make it clear for newbs that this can be used with Node without them having to scroll.
This commit is contained in:
Cory Simmons 2017-08-30 00:25:10 -04:00 committed by Henry Zhu
parent f0e49dceb5
commit 5196b94fa5

View File

@ -18,6 +18,18 @@ npm install babel-preset-env --save-dev
}
```
```json
{
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
]
}
```
Check out the many options (especially `useBuiltIns` to polyfill less)!
- [How it Works](#how-it-works)