$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]¯\_(ツ)_/¯
| /** | |
| * Use restify with promises | |
| * | |
| * Restify middleware and route handlers are passed a callback function `next` | |
| * which must be called on success, or on an error. | |
| * | |
| * But you may prefer to define your middleware and routes using promises or | |
| * async functions instead of using callbacks. | |
| * | |
| * To achieve that, simply wrap your middleware functions in `middleware()` and |